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.
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 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: String
auth: bool
mut: bool
Implementations
impl Permission
[src]
impl Permission
[src]Trait Implementations
impl Clone for Permission
[src]
impl Clone for Permission
[src]fn clone(&self) -> Permission
[src]
fn clone(&self) -> Permission
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for Permission
[src]
impl Debug for Permission
[src]impl Hash for Permission
[src]
impl Hash for Permission
[src]impl Ord for Permission
[src]
impl Ord for Permission
[src]impl PartialEq<Permission> for Permission
[src]
impl PartialEq<Permission> for Permission
[src]fn eq(&self, other: &Permission) -> bool
[src]
fn eq(&self, other: &Permission) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Permission) -> bool
[src]
fn ne(&self, other: &Permission) -> bool
[src]This method tests for !=
.
impl PartialOrd<Permission> for Permission
[src]
impl PartialOrd<Permission> for Permission
[src]fn partial_cmp(&self, other: &Permission) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Permission) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for Permission
[src]
impl StructuralEq for Permission
[src]
impl StructuralPartialEq for Permission
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,