Enum pliantdb_core::permissions::pliant::PubSubAction [−][src]
pub enum PubSubAction { CreateSuscriber, Publish, SubscribeTo, UnsubscribeFrom, }
Expand description
Actions that operate on the PubSub
system.
Variants
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.
Allows publishing a payload to a PubSub
topic with
PubSub::publish()
. See
pubsub_topic_resource_name()
for the format of PubSub
topic
resource names.
Allows subscribing to a PubSub
topic with
PubSub::subscribe_to()
. See
pubsub_topic_resource_name()
for the format of PubSub
topic
resource names.
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
The full name of this action.
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
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
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self