pub enum SPrivileged {
Privileged,
User,
Inherit,
}Variants§
Implementations§
Source§impl SPrivileged
impl SPrivileged
Sourcepub const fn is_privileged(&self) -> bool
pub const fn is_privileged(&self) -> bool
Returns true if the enum is SPrivileged::Privileged otherwise false
Sourcepub const fn is_user(&self) -> bool
pub const fn is_user(&self) -> bool
Returns true if the enum is SPrivileged::User otherwise false
Sourcepub const fn is_inherit(&self) -> bool
pub const fn is_inherit(&self) -> bool
Returns true if the enum is SPrivileged::Inherit otherwise false
Trait Implementations§
Source§impl Clone for SPrivileged
impl Clone for SPrivileged
Source§fn clone(&self) -> SPrivileged
fn clone(&self) -> SPrivileged
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 SPrivileged
impl Debug for SPrivileged
Source§impl Default for SPrivileged
impl Default for SPrivileged
Source§fn default() -> SPrivileged
fn default() -> SPrivileged
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SPrivileged
impl<'de> Deserialize<'de> for SPrivileged
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SPrivileged
impl Display for SPrivileged
Source§impl PartialEq for SPrivileged
impl PartialEq for SPrivileged
Source§impl Serialize for SPrivileged
impl Serialize for SPrivileged
impl Copy for SPrivileged
impl Eq for SPrivileged
impl StructuralPartialEq for SPrivileged
Auto Trait Implementations§
impl Freeze for SPrivileged
impl RefUnwindSafe for SPrivileged
impl Send for SPrivileged
impl Sync for SPrivileged
impl Unpin for SPrivileged
impl UnwindSafe for SPrivileged
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