pub struct Privilege {
pub code: PrivilegeCode,
pub namespace: Option<String>,
pub set_name: Option<String>,
}Expand description
Privilege determines user access granularity.
Fields§
§code: PrivilegeCodeRole
namespace: Option<String>Namespace determines namespace scope. Apply permission to this namespace only. If namespace is None, the privilege applies to all namespaces.
set_name: Option<String>Set name scope. Apply permission to this set within namespace only. If set is None, the privilege applies to all sets within namespace.
Implementations§
Trait Implementations§
impl Eq for Privilege
impl StructuralPartialEq for Privilege
Auto Trait Implementations§
impl Freeze for Privilege
impl RefUnwindSafe for Privilege
impl Send for Privilege
impl Sync for Privilege
impl Unpin for Privilege
impl UnsafeUnpin for Privilege
impl UnwindSafe for Privilege
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