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 Convert for Address
impl Convert for Address
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
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 Executor for Address
impl Executor for Address
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
impl DataType for Address
Auto Trait Implementations§
impl Freeze for Address
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