[][src]Struct safe_nd::ADataPubPermissionSet

pub struct ADataPubPermissionSet { /* fields omitted */ }

Set of published permissions for a user.

Methods

impl PubPermissionSet[src]

pub fn new(
    append: impl Into<Option<bool>>,
    manage_perms: impl Into<Option<bool>>
) -> Self
[src]

Constructs a new published permission set.

pub fn set_perms(
    &mut self,
    append: impl Into<Option<bool>>,
    manage_perms: impl Into<Option<bool>>
)
[src]

Sets permissions.

pub fn is_allowed(self, action: Action) -> Option<bool>[src]

Returns Some(true) if action is allowed and Some(false) if it's not permitted. None means that default permissions should be applied.

Trait Implementations

impl Clone for PubPermissionSet[src]

impl Copy for PubPermissionSet[src]

impl Debug for PubPermissionSet[src]

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

impl Eq for PubPermissionSet[src]

impl Hash for PubPermissionSet[src]

impl Ord for PubPermissionSet[src]

impl PartialEq<PubPermissionSet> for PubPermissionSet[src]

impl PartialOrd<PubPermissionSet> for PubPermissionSet[src]

impl Serialize for PubPermissionSet[src]

impl StructuralEq for PubPermissionSet[src]

impl StructuralPartialEq for PubPermissionSet[src]

impl TryFrom<Response> for ADataPubPermissionSet[src]

type Error = TryFromError

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

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.