Enum pliantdb_core::permissions::pliant::PubSubAction[][src]

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

The full name of this action.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.