pub struct Address {
pub meta: Bo4eMeta,
pub street: Option<String>,
pub house_number: Option<String>,
pub postal_code: Option<String>,
pub city: Option<String>,
pub district: Option<String>,
pub po_box: Option<String>,
pub address_addition: Option<String>,
pub co_ergaenzung: Option<String>,
pub country_code: Option<Country>,
}Expand description
Physical or postal address.
German: Adresse
§Example
use bo4e_core::com::Address;
let address = Address {
street: Some("Musterstraße".to_string()),
house_number: Some("42".to_string()),
postal_code: Some("50667".to_string()),
city: Some("Köln".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
street: Option<String>Street name (Strasse)
house_number: Option<String>House number (Hausnummer)
postal_code: Option<String>Postal code (Postleitzahl)
city: Option<String>City/town (Ort)
district: Option<String>District (Ortsteil)
po_box: Option<String>PO Box number (Postfach)
address_addition: Option<String>Address addition/note (Adresszusatz)
co_ergaenzung: Option<String>Co-location info - c/o address (CoErgaenzung)
country_code: Option<Country>Country code (Landescode)
Trait Implementations§
Source§impl Bo4eObject for Address
impl Bo4eObject for Address
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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
impl StructuralPartialEq 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