pub struct ResourcePerm {
pub resource: String,
pub ops: OpsMask,
}Expand description
One resource’s operation grant within a Permissions bundle.
Fields§
§resource: StringResource (table) name the mask applies to.
ops: OpsMaskAllowed operations on resource.
Trait Implementations§
Source§impl Clone for ResourcePerm
impl Clone for ResourcePerm
Source§fn clone(&self) -> ResourcePerm
fn clone(&self) -> ResourcePerm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResourcePerm
impl RefUnwindSafe for ResourcePerm
impl Send for ResourcePerm
impl Sync for ResourcePerm
impl Unpin for ResourcePerm
impl UnsafeUnpin for ResourcePerm
impl UnwindSafe for ResourcePerm
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