[][src]Struct safe_nd::MDataPermissionSet

pub struct MDataPermissionSet { /* fields omitted */ }

Set of user permissions.

Methods

impl PermissionSet[src]

pub fn new() -> PermissionSet[src]

Constructs new permission set.

pub fn allow(self, action: Action) -> Self[src]

Allows the given action.

pub fn deny(self, action: Action) -> Self[src]

Denies the given action.

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

Is the given action allowed according to this permission set?

Trait Implementations

impl Clone for PermissionSet[src]

impl Debug for PermissionSet[src]

impl Default for PermissionSet[src]

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

impl Eq for PermissionSet[src]

impl Hash for PermissionSet[src]

impl Ord for PermissionSet[src]

impl PartialEq<PermissionSet> for PermissionSet[src]

impl PartialOrd<PermissionSet> for PermissionSet[src]

impl Serialize for PermissionSet[src]

impl StructuralEq for PermissionSet[src]

impl StructuralPartialEq for PermissionSet[src]

impl TryFrom<Response> for MDataPermissionSet[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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

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

impl<T> InitializableFromZeroed for T where
    T: Default

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.