#[non_exhaustive]pub enum SamAccountType {
DomainObject,
GroupObject,
NonSecurityGroupObject,
AliasObject,
NonSecurityAliasObject,
NormalUserAccount,
MachineAccount,
TrustAccount,
AppBasicGroup,
AppQueryGroup,
Unknown(u32),
}Expand description
Symbolic decode of sAMAccountType.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DomainObject
SAM_DOMAIN_OBJECT (0x0000_0000).
GroupObject
SAM_GROUP_OBJECT (0x1000_0000) — a global security group.
NonSecurityGroupObject
SAM_NON_SECURITY_GROUP_OBJECT (0x1000_0001) — a distribution group.
AliasObject
SAM_ALIAS_OBJECT (0x2000_0000) — a domain-local security group.
NonSecurityAliasObject
SAM_NON_SECURITY_ALIAS_OBJECT (0x2000_0001).
NormalUserAccount
SAM_USER_OBJECT / SAM_NORMAL_USER_ACCOUNT (0x3000_0000) — a regular user.
MachineAccount
SAM_MACHINE_ACCOUNT (0x3000_0001) — a computer account.
TrustAccount
SAM_TRUST_ACCOUNT (0x3000_0002) — an inter-domain trust account.
AppBasicGroup
SAM_APP_BASIC_GROUP (0x4000_0000).
AppQueryGroup
SAM_APP_QUERY_GROUP (0x4000_0001).
Unknown(u32)
An unknown value (with the original bits preserved).
Implementations§
Trait Implementations§
Source§impl Clone for SamAccountType
impl Clone for SamAccountType
impl Copy for SamAccountType
Source§impl Debug for SamAccountType
impl Debug for SamAccountType
impl Eq for SamAccountType
Source§impl PartialEq for SamAccountType
impl PartialEq for SamAccountType
impl StructuralPartialEq for SamAccountType
Auto Trait Implementations§
impl Freeze for SamAccountType
impl RefUnwindSafe for SamAccountType
impl Send for SamAccountType
impl Sync for SamAccountType
impl Unpin for SamAccountType
impl UnsafeUnpin for SamAccountType
impl UnwindSafe for SamAccountType
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