pub struct BusinessPartner {
pub meta: Bo4eMeta,
pub partner_id: Option<String>,
pub name1: Option<String>,
pub name2: Option<String>,
pub name3: Option<String>,
pub roles: Vec<BusinessPartnerRole>,
pub address: Option<Address>,
pub contact_methods: Vec<ContactMethod>,
pub commercial_register_number: Option<String>,
pub tax_id: Option<String>,
pub vat_id: Option<String>,
}Expand description
A business partner (company or organization).
German: Geschaeftspartner
§Example
use bo4e_core::bo::BusinessPartner;
use bo4e_core::enums::BusinessPartnerRole;
let partner = BusinessPartner {
name1: Some("Stadtwerke Musterstadt GmbH".to_string()),
roles: vec![BusinessPartnerRole::Supplier],
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
partner_id: Option<String>Partner ID (Geschaeftspartner-ID)
name1: Option<String>Company/organization name (Name1)
name2: Option<String>Additional name line (Name2)
name3: Option<String>Additional name line (Name3)
roles: Vec<BusinessPartnerRole>Roles this partner has (Rollen)
address: Option<Address>Primary address (Adresse)
contact_methods: Vec<ContactMethod>Contact methods (Kontaktwege)
commercial_register_number: Option<String>Commercial register number (Handelsregisternummer)
tax_id: Option<String>Tax ID (Steuernummer)
vat_id: Option<String>VAT ID (Umsatzsteuer-ID)
Trait Implementations§
Source§impl Bo4eObject for BusinessPartner
impl Bo4eObject for BusinessPartner
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 Clone for BusinessPartner
impl Clone for BusinessPartner
Source§fn clone(&self) -> BusinessPartner
fn clone(&self) -> BusinessPartner
Returns a duplicate of the value. Read more
1.0.0 · 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 BusinessPartner
impl Debug for BusinessPartner
Source§impl Default for BusinessPartner
impl Default for BusinessPartner
Source§fn default() -> BusinessPartner
fn default() -> BusinessPartner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BusinessPartner
impl<'de> Deserialize<'de> for BusinessPartner
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
Source§impl PartialEq for BusinessPartner
impl PartialEq for BusinessPartner
Source§impl Serialize for BusinessPartner
impl Serialize for BusinessPartner
impl StructuralPartialEq for BusinessPartner
Auto Trait Implementations§
impl Freeze for BusinessPartner
impl RefUnwindSafe for BusinessPartner
impl Send for BusinessPartner
impl Sync for BusinessPartner
impl Unpin for BusinessPartner
impl UnwindSafe for BusinessPartner
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