pub struct LocationRef {
pub id: String,
pub name: String,
pub state: Option<String>,
}Expand description
Information about a location referenced by a region.
Fields§
§id: StringThe ID of the location.
name: StringThe name of the location.
state: Option<String>The state of the location within the country (only if applicable).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LocationRef
impl<'de> Deserialize<'de> for LocationRef
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 LocationRef
impl RefUnwindSafe for LocationRef
impl Send for LocationRef
impl Sync for LocationRef
impl Unpin for LocationRef
impl UnwindSafe for LocationRef
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