#[non_exhaustive]pub struct Location {
pub name: String,
pub location_id: String,
pub display_name: String,
pub labels: HashMap<String, String>,
pub metadata: Option<Any>,
/* private fields */
}Expand description
A resource that represents Google Cloud Platform 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.name: StringResource name for the location, which may vary between implementations.
For example: "projects/example-project/locations/us-east1"
location_id: StringThe canonical id for this location. For example: "us-east1".
display_name: StringThe friendly name for this location, typically a nearby city name. For example, “Tokyo”.
labels: HashMap<String, String>Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}metadata: Option<Any>Service-specific metadata. For example the available capacity at the given location.
Implementations§
Source§impl Location
impl Location
pub fn new() -> Self
Sourcepub fn set_location_id<T: Into<String>>(self, v: T) -> Self
pub fn set_location_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_metadata<T>(self, v: T) -> Self
pub fn set_metadata<T>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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