Enum bonsaidb_core::permissions::bonsai::PubSubAction
source · 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§
source§impl Action for PubSubAction
impl Action for PubSubAction
source§fn name(&self) -> ActionName
fn name(&self) -> ActionName
The full name of this action.
source§impl Clone for PubSubAction
impl Clone for PubSubAction
source§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 moresource§impl Debug for PubSubAction
impl Debug for PubSubAction
source§impl<'de> Deserialize<'de> for PubSubAction
impl<'de> Deserialize<'de> for PubSubAction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PubSubAction
impl Serialize for PubSubAction
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§
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