pub struct Code(/* private fields */);Expand description
The Code enum represents the various reasons a state can be INACTIVE.
Implementations§
Source§impl Code
impl Code
Sourcepub const CODE_UNSPECIFIED: Code
pub const CODE_UNSPECIFIED: Code
No information available.
Sourcepub const PENDING_REVIEW: Code
pub const PENDING_REVIEW: Code
The proposed spoke is pending review.
Sourcepub const FAILED: Code
pub const FAILED: Code
Network Connectivity Center encountered errors while accepting the spoke.
Sourcepub const UPDATE_PENDING_REVIEW: Code
pub const UPDATE_PENDING_REVIEW: Code
The proposed spoke update is pending review.
Sourcepub const UPDATE_REJECTED: Code
pub const UPDATE_REJECTED: Code
The proposed spoke update has been rejected by the hub administrator.
Sourcepub const UPDATE_FAILED: Code
pub const UPDATE_FAILED: Code
Network Connectivity Center encountered errors while accepting the spoke update.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Code
impl<'de> Deserialize<'de> for Code
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 StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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