pub struct Locality {
pub region: Option<String>,
pub zone: Option<String>,
}
Expand description
Locality identifies where a given entity is running.
Fields§
§region: Option<String>
Region is region the zone belongs to.
zone: Option<String>
Zone is the zone the entity is running in.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Locality
impl<'de> Deserialize<'de> for Locality
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
Auto Trait Implementations§
impl Freeze for Locality
impl RefUnwindSafe for Locality
impl Send for Locality
impl Sync for Locality
impl Unpin for Locality
impl UnwindSafe for Locality
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