pub enum UserRole {
Administrator,
Backup,
Metrics,
Operator,
}
Expand description
The role of a user on a NetHSM device
Variants§
Administrator
A role for administrating a device, its users and keys
Backup
A role for creating backups of a device
Metrics
A role for reading metrics of a device
Operator
A role for using one or more keys of a device
Trait Implementations§
source§impl<'de> Deserialize<'de> for UserRole
impl<'de> Deserialize<'de> for UserRole
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 IntoEnumIterator for UserRole
impl IntoEnumIterator for UserRole
type Iterator = UserRoleIter
fn iter() -> UserRoleIter ⓘ
source§impl Ord for UserRole
impl Ord for UserRole
source§impl PartialOrd for UserRole
impl PartialOrd for UserRole
impl Copy for UserRole
impl Eq for UserRole
impl StructuralPartialEq for UserRole
Auto Trait Implementations§
impl Freeze for UserRole
impl RefUnwindSafe for UserRole
impl Send for UserRole
impl Sync for UserRole
impl Unpin for UserRole
impl UnwindSafe for UserRole
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)