Struct lrau::permission::Permission [−][src]
Expand description
The permission struct stores an individual
permission.
This contains information about a user accessing
certain areas of a program.
You probably will never need to access this because it is included
int Permissions
It can be configured in toml like below:
First specify an individual element in a
permissions
array.
In this you need to specify a path (as an array) path
,
and wether the user has permission auth
.
Then you can specify mutability mut
.
# Create an array element
[[permissions]]
# Specify the path
path = ["contacts"]
# Specify the authentication
auth = true
# Specify if they can mutate the contacts
mut = true
This creates a permission in the /contacts
path, where the user can both read and mutate it.
Fields
path: Vec<String>
auth: bool
mut: bool
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V