pub struct UserPermissions {
pub read: bool,
pub write: bool,
pub run: bool,
}
Expand description
Permissions of a given user regarding a specific file.
Fields§
§read: bool
§write: bool
§run: bool
Trait Implementations§
source§impl Clone for UserPermissions
impl Clone for UserPermissions
source§fn clone(&self) -> UserPermissions
fn clone(&self) -> UserPermissions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UserPermissions
impl Debug for UserPermissions
source§impl Display for UserPermissions
impl Display for UserPermissions
source§impl PartialEq for UserPermissions
impl PartialEq for UserPermissions
source§fn eq(&self, other: &UserPermissions) -> bool
fn eq(&self, other: &UserPermissions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for UserPermissions
impl StructuralPartialEq for UserPermissions
Auto Trait Implementations§
impl Freeze for UserPermissions
impl RefUnwindSafe for UserPermissions
impl Send for UserPermissions
impl Sync for UserPermissions
impl Unpin for UserPermissions
impl UnwindSafe for UserPermissions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more