pub struct Address {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub use_: Option<CodeDt>,
pub type_: Option<CodeDt>,
pub text: Option<StringDt>,
pub line: Option<Vec<StringDt>>,
pub city: Option<StringDt>,
pub district: Option<StringDt>,
pub state: Option<StringDt>,
pub postal_code: Option<StringDt>,
pub country: Option<StringDt>,
pub period: Option<Period>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
use_: Option<CodeDt>
home | work | temp | old | billing - purpose of this address
type_: Option<CodeDt>
postal | physical | both
text: Option<StringDt>
Text representation of the address
line: Option<Vec<StringDt>>
Street name, number, direction & P.O. Box etc.
city: Option<StringDt>
Name of city, town etc.
district: Option<StringDt>
District name (aka county)
state: Option<StringDt>
Sub-unit of country (abbreviations ok)
postal_code: Option<StringDt>
Postal code for area
country: Option<StringDt>
Country (e.g. may be ISO 3166 2 or 3 letter code)
period: Option<Period>
Time period when address was/is in use
Implementations§
source§impl Address
impl Address
pub fn set_use_<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_type_<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_text<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_line(self, v: Vec<StringDt>) -> Self
pub fn add_line<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_city<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_district<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_state<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_postal_code<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_country<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_period(self, v: Period) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for Address
impl Element for Address
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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