pub struct TownDetail {
pub id: String,
pub code: String,
pub country: String,
pub name: String,
pub section: String,
pub state_or_province: String,
}Expand description
Town details, in the context of address.
Fields§
§id: String§code: StringTown code.
country: StringName of the country.
name: StringTown name.
section: StringTown section. For example, it is common for there to be 36 sections per township.
state_or_province: StringName of the state or province.
Implementations§
Source§impl TownDetail
impl TownDetail
pub fn from_block(b: &RdfBlock) -> Self
Trait Implementations§
Source§impl CimElement for TownDetail
impl CimElement for TownDetail
Source§impl Clone for TownDetail
impl Clone for TownDetail
Source§fn clone(&self) -> TownDetail
fn clone(&self) -> TownDetail
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 TownDetail
impl Debug for TownDetail
Source§impl Default for TownDetail
impl Default for TownDetail
Source§fn default() -> TownDetail
fn default() -> TownDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TownDetail
impl<'de> Deserialize<'de> for TownDetail
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 TownDetail
impl RefUnwindSafe for TownDetail
impl Send for TownDetail
impl Sync for TownDetail
impl Unpin for TownDetail
impl UnsafeUnpin for TownDetail
impl UnwindSafe for TownDetail
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