#[repr(i32)]pub enum RootStatus {
Unspecified = 0,
Rooted = 1,
Rootless = 2,
UnclaimedAgent = 3,
}Expand description
Owner-root claim status for a subject (api#131).
Variants§
Unspecified = 0
Rooted = 1
The subject holds a claimed owner root.
Rootless = 2
The subject has no owner root.
UnclaimedAgent = 3
The subject is an agent account whose owner root is not yet claimed.
Implementations§
Source§impl RootStatus
impl RootStatus
Source§impl RootStatus
impl RootStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for RootStatus
impl Clone for RootStatus
Source§fn clone(&self) -> RootStatus
fn clone(&self) -> RootStatus
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 RootStatus
Source§impl Debug for RootStatus
impl Debug for RootStatus
Source§impl Default for RootStatus
impl Default for RootStatus
Source§fn default() -> RootStatus
fn default() -> RootStatus
Returns the “default value” for a type. Read more
impl Eq for RootStatus
Source§impl From<RootStatus> for i32
impl From<RootStatus> for i32
Source§fn from(value: RootStatus) -> i32
fn from(value: RootStatus) -> i32
Converts to this type from the input type.
Source§impl Hash for RootStatus
impl Hash for RootStatus
Source§impl Ord for RootStatus
impl Ord for RootStatus
Source§fn cmp(&self, other: &RootStatus) -> Ordering
fn cmp(&self, other: &RootStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RootStatus
impl PartialEq for RootStatus
Source§impl PartialOrd for RootStatus
impl PartialOrd for RootStatus
impl StructuralPartialEq for RootStatus
Source§impl TryFrom<i32> for RootStatus
impl TryFrom<i32> for RootStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RootStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<RootStatus, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RootStatus
impl RefUnwindSafe for RootStatus
impl Send for RootStatus
impl Sync for RootStatus
impl Unpin for RootStatus
impl UnsafeUnpin for RootStatus
impl UnwindSafe for RootStatus
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