Struct wicrs_server::permission::ChannelPermissionSet[][src]

pub struct ChannelPermissionSet {
    pub permission: ChannelPermission,
    pub setting: Option<bool>,
    pub channel: ID,
}

Datastructure that groups a channel permission setting with the channel ID that it is valid in and a permission setting.

Fields

permission: ChannelPermission

Permission that this permission set is for.

setting: Option<bool>

Setting for the permission.

channel: ID

ID of the channel that this permission setting is for.

Implementations

impl ChannelPermissionSet[src]

pub async fn permission(&self, ctx: &Context<'_>) -> Result<&ChannelPermission>[src]

pub async fn setting(&self, ctx: &Context<'_>) -> Result<&Option<bool>>[src]

pub async fn channel(&self, ctx: &Context<'_>) -> Result<&ID>[src]

Trait Implementations

impl Clone for ChannelPermissionSet[src]

impl ContainerType for ChannelPermissionSet[src]

impl Copy for ChannelPermissionSet[src]

impl Debug for ChannelPermissionSet[src]

impl<'de> Deserialize<'de> for ChannelPermissionSet[src]

impl Eq for ChannelPermissionSet[src]

impl From<(ChannelPermission, Option<bool>, Uuid)> for ChannelPermissionSet[src]

impl Hash for ChannelPermissionSet[src]

impl ObjectType for ChannelPermissionSet[src]

impl OutputType for ChannelPermissionSet[src]

impl PartialEq<ChannelPermissionSet> for ChannelPermissionSet[src]

impl Serialize for ChannelPermissionSet[src]

impl StructuralEq for ChannelPermissionSet[src]

impl StructuralPartialEq for ChannelPermissionSet[src]

impl Type for ChannelPermissionSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Fruit for T where
    T: Send + Downcast, 
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

type Err = Infallible

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,