pub struct Code(/* private fields */);Expand description
Warning code for policy-based routing. Expect to add values in the future.
Implementations§
Source§impl Code
impl Code
Sourcepub const WARNING_UNSPECIFIED: Code
pub const WARNING_UNSPECIFIED: Code
Default value.
Sourcepub const RESOURCE_NOT_ACTIVE: Code
pub const RESOURCE_NOT_ACTIVE: Code
The policy-based route is not active and functioning. Common causes are that the dependent network was deleted or the resource project was turned off.
Sourcepub const RESOURCE_BEING_MODIFIED: Code
pub const RESOURCE_BEING_MODIFIED: Code
The policy-based route is being modified (e.g. created/deleted) at this time.
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