Enum bonsaidb::core::permissions::bonsai::PubSubAction
pub enum PubSubAction {
CreateSuscriber,
Publish,
SubscribeTo,
UnsubscribeFrom,
}
Expand description
Actions that operate on the PubSub
system.
Variants§
CreateSuscriber
Allows creating a subscriber with
PubSub::create_subscriber()
.
This action is checked against the database’s resource name. See
database_resource_name()
for the format of database resource names.
Publish
Allows publishing a payload to a PubSub
topic with
PubSub::publish()
. See
pubsub_topic_resource_name()
for the format of PubSub
topic
resource names.
SubscribeTo
Allows subscribing to a PubSub
topic with
PubSub::subscribe_to()
. See
pubsub_topic_resource_name()
for the format of PubSub
topic
resource names.
UnsubscribeFrom
Allows unsubscribing from a PubSub
topic with
PubSub::unsubscribe_from()
. See
pubsub_topic_resource_name()
for the format of PubSub
topic
resource names.
Trait Implementations§
§impl Action for PubSubAction
impl Action for PubSubAction
§fn name(&self) -> ActionName
fn name(&self) -> ActionName
The full name of this action.
§impl Clone for PubSubAction
impl Clone for PubSubAction
§fn clone(&self) -> PubSubAction
fn clone(&self) -> PubSubAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for PubSubAction
impl Debug for PubSubAction
§impl<'de> Deserialize<'de> for PubSubAction
impl<'de> Deserialize<'de> for PubSubAction
§fn deserialize<__D>(
__deserializer: __D
) -> Result<PubSubAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<PubSubAction, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for PubSubAction
impl Serialize for PubSubAction
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PubSubAction
Auto Trait Implementations§
impl RefUnwindSafe for PubSubAction
impl Send for PubSubAction
impl Sync for PubSubAction
impl Unpin for PubSubAction
impl UnwindSafe for PubSubAction
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more