pub enum SubjectType {
User,
Service,
Desktop,
}Expand description
Token subject class. Lets a consumer tell “a person wrote this in the client” from “a service connector wrote this”.
Variants§
User
A person, acting through an interactive client.
Service
A service connector or automation.
Desktop
A desktop client instance.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubjectType
Source§impl Debug for SubjectType
impl Debug for SubjectType
Source§impl<'de> Deserialize<'de> for SubjectType
impl<'de> Deserialize<'de> for SubjectType
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
impl Eq for SubjectType
Source§impl PartialEq for SubjectType
impl PartialEq for SubjectType
Source§impl Serialize for SubjectType
impl Serialize 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 UnsafeUnpin 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