#[non_exhaustive]pub struct LocationMetadata {
pub supported_service_levels: Vec<ServiceLevel>,
pub supported_flex_performance: Vec<FlexPerformance>,
pub has_vcp: bool,
pub has_ontap_proxy: bool,
/* private fields */
}Expand description
Metadata for a given google.cloud.location.Location.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.supported_service_levels: Vec<ServiceLevel>Output only. Supported service levels in a location.
supported_flex_performance: Vec<FlexPerformance>Output only. Supported flex performance in a location.
has_vcp: boolOutput only. Indicates if the location has VCP support.
has_ontap_proxy: boolOutput only. Indicates if the location has ONTAP Proxy support.
Implementations§
Source§impl LocationMetadata
impl LocationMetadata
Sourcepub fn set_supported_service_levels<T, V>(self, v: T) -> Self
pub fn set_supported_service_levels<T, V>(self, v: T) -> Self
Sets the value of supported_service_levels.
§Example
ⓘ
use google_cloud_netapp_v1::model::ServiceLevel;
let x = LocationMetadata::new().set_supported_service_levels([
ServiceLevel::Premium,
ServiceLevel::Extreme,
ServiceLevel::Standard,
]);Sourcepub fn set_supported_flex_performance<T, V>(self, v: T) -> Self
pub fn set_supported_flex_performance<T, V>(self, v: T) -> Self
Sets the value of supported_flex_performance.
§Example
ⓘ
use google_cloud_netapp_v1::model::FlexPerformance;
let x = LocationMetadata::new().set_supported_flex_performance([
FlexPerformance::Default,
FlexPerformance::Custom,
]);Sourcepub fn set_has_vcp<T: Into<bool>>(self, v: T) -> Self
pub fn set_has_vcp<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_has_ontap_proxy<T: Into<bool>>(self, v: T) -> Self
pub fn set_has_ontap_proxy<T: Into<bool>>(self, v: T) -> Self
Sets the value of has_ontap_proxy.
§Example
ⓘ
let x = LocationMetadata::new().set_has_ontap_proxy(true);Trait Implementations§
Source§impl Clone for LocationMetadata
impl Clone for LocationMetadata
Source§fn clone(&self) -> LocationMetadata
fn clone(&self) -> LocationMetadata
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 moreSource§impl Debug for LocationMetadata
impl Debug for LocationMetadata
Source§impl Default for LocationMetadata
impl Default for LocationMetadata
Source§fn default() -> LocationMetadata
fn default() -> LocationMetadata
Returns the “default value” for a type. Read more
Source§impl Message for LocationMetadata
impl Message for LocationMetadata
Source§impl PartialEq for LocationMetadata
impl PartialEq for LocationMetadata
impl StructuralPartialEq for LocationMetadata
Auto Trait Implementations§
impl Freeze for LocationMetadata
impl RefUnwindSafe for LocationMetadata
impl Send for LocationMetadata
impl Sync for LocationMetadata
impl Unpin for LocationMetadata
impl UnsafeUnpin for LocationMetadata
impl UnwindSafe for LocationMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request