pub enum SubjectType {
User,
Group,
Service,
Device,
Custom(String),
}Expand description
Types of subjects that can be assigned roles.
Variants§
User
A human user.
Group
A group of users.
Service
A service or application.
Device
A device or system.
Custom(String)
Custom subject type.
Implementations§
Source§impl SubjectType
impl SubjectType
Sourcepub fn is_service(&self) -> bool
pub fn is_service(&self) -> bool
Check if this is a service subject type.
Trait Implementations§
Source§impl Clone for SubjectType
impl Clone for SubjectType
Source§fn clone(&self) -> SubjectType
fn clone(&self) -> SubjectType
Returns a duplicate 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 SubjectType
impl Debug for SubjectType
Source§impl Display for SubjectType
impl Display for SubjectType
Source§impl FromStr for SubjectType
impl FromStr for SubjectType
Source§impl Hash for SubjectType
impl Hash for SubjectType
Source§impl PartialEq for SubjectType
impl PartialEq for SubjectType
impl Eq for SubjectType
impl StructuralPartialEq for SubjectType
Auto Trait Implementations§
impl Freeze for SubjectType
impl RefUnwindSafe for SubjectType
impl Send for SubjectType
impl Sync for SubjectType
impl Unpin for SubjectType
impl UnwindSafe for SubjectType
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