pub struct LocationFeature(/* private fields */);Expand description
Supported features for a location
Implementations§
Source§impl LocationFeature
impl LocationFeature
Sourcepub const LOCATION_FEATURE_UNSPECIFIED: LocationFeature
pub const LOCATION_FEATURE_UNSPECIFIED: LocationFeature
No publicly supported feature in this location
Sourcepub const SITE_TO_CLOUD_SPOKES: LocationFeature
pub const SITE_TO_CLOUD_SPOKES: LocationFeature
Site-to-cloud spokes are supported in this location
Sourcepub const SITE_TO_SITE_SPOKES: LocationFeature
pub const SITE_TO_SITE_SPOKES: LocationFeature
Site-to-site spokes are supported in this location
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 Clone for LocationFeature
impl Clone for LocationFeature
Source§fn clone(&self) -> LocationFeature
fn clone(&self) -> LocationFeature
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocationFeature
impl Debug for LocationFeature
Source§impl Default for LocationFeature
impl Default for LocationFeature
Source§impl<'de> Deserialize<'de> for LocationFeature
impl<'de> Deserialize<'de> for LocationFeature
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 From<i32> for LocationFeature
impl From<i32> for LocationFeature
Source§impl PartialEq for LocationFeature
impl PartialEq for LocationFeature
Source§impl Serialize for LocationFeature
impl Serialize for LocationFeature
impl StructuralPartialEq for LocationFeature
Auto Trait Implementations§
impl Freeze for LocationFeature
impl RefUnwindSafe for LocationFeature
impl Send for LocationFeature
impl Sync for LocationFeature
impl Unpin for LocationFeature
impl UnwindSafe for LocationFeature
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