Struct lrau::permission::Permissions[][src]

pub struct Permissions {
    pub vec: Vec<Permission>,
}

The permissions struct stores a vector of Permissions

Fields

vec: Vec<Permission>

Implementations

impl Permissions[src]

pub fn new(vec: Vec<Permission>) -> Self[src]

To create a new permissions you need to specify a vec to use. If you don’t want this you can use the default function

pub fn get_permission(&self, path: &str, mut: bool) -> bool[src]

This function gets wether the permissions at path have the desired permissions.

Trait Implementations

impl Clone for Permissions[src]

impl Debug for Permissions[src]

impl Default for Permissions[src]

impl Eq for Permissions[src]

impl From<Vec<Permission, Global>> for Permissions[src]

impl Hash for Permissions[src]

impl Ord for Permissions[src]

impl PartialEq<Permissions> for Permissions[src]

impl PartialOrd<Permissions> for Permissions[src]

impl StructuralEq for Permissions[src]

impl StructuralPartialEq for Permissions[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> From<T> for T[src]

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

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>,