#[non_exhaustive]pub struct ZoneMetadata {
pub quota: Vec<Quota>,
pub rack_types: HashMap<String, RackType>,
pub config_data: Option<ConfigData>,
/* private fields */
}Expand description
A Google Distributed Cloud Edge zone where edge machines are located.
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.quota: Vec<Quota>Quota for resources in this zone.
rack_types: HashMap<String, RackType>The map keyed by rack name and has value of RackType.
config_data: Option<ConfigData>Config data for the zone.
Implementations§
Source§impl ZoneMetadata
impl ZoneMetadata
pub fn new() -> Self
Sourcepub fn set_rack_types<T, K, V>(self, v: T) -> Self
pub fn set_rack_types<T, K, V>(self, v: T) -> Self
Sets the value of rack_types.
Sourcepub fn set_config_data<T>(self, v: T) -> Selfwhere
T: Into<ConfigData>,
pub fn set_config_data<T>(self, v: T) -> Selfwhere
T: Into<ConfigData>,
Sets the value of config_data.
Sourcepub fn set_or_clear_config_data<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConfigData>,
pub fn set_or_clear_config_data<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConfigData>,
Sets or clears the value of config_data.
Trait Implementations§
Source§impl Clone for ZoneMetadata
impl Clone for ZoneMetadata
Source§fn clone(&self) -> ZoneMetadata
fn clone(&self) -> ZoneMetadata
Returns a duplicate 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 ZoneMetadata
impl Debug for ZoneMetadata
Source§impl Default for ZoneMetadata
impl Default for ZoneMetadata
Source§fn default() -> ZoneMetadata
fn default() -> ZoneMetadata
Returns the “default value” for a type. Read more
Source§impl Message for ZoneMetadata
impl Message for ZoneMetadata
Source§impl PartialEq for ZoneMetadata
impl PartialEq for ZoneMetadata
impl StructuralPartialEq for ZoneMetadata
Auto Trait Implementations§
impl Freeze for ZoneMetadata
impl RefUnwindSafe for ZoneMetadata
impl Send for ZoneMetadata
impl Sync for ZoneMetadata
impl Unpin for ZoneMetadata
impl UnwindSafe for ZoneMetadata
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