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

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

The permissions struct stores a vector of Permissions


vec: Vec<Permission>


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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