Struct lexoffice::model::contacts::Contact [−][src]
{
"id": "be9475f4-ef80-442b-8ab9-3ab8b1a2aeb9",
"organizationId": "aa93e8a8-2aa3-470b-b914-caad8a255dd8",
"version": 1,
"roles": {
"customer": {
"number": 10307
},
"vendor": {
"number": 70303
}
},
"company": {
"name": "Testfirma",
"taxNumber": "12345/12345",
"vatRegistrationId": "DE123456789",
"allowTaxFreeInvoices": true,
"contactPersons": [
{
"salutation": "Herr",
"firstName": "Max",
"lastName": "Mustermann",
"primary": true,
"emailAddress": "contactpersonmail@lexoffice.de",
"phoneNumber": "08000/11111"
}
]
},
"addresses": {
"billing": [
{
"supplement": "Rechnungsadressenzusatz",
"street": "Hauptstr. 5",
"zip": "12345",
"city": "Musterort",
"countryCode": "DE"
}
],
"shipping": [
{
"supplement": "Lieferadressenzusatz",
"street": "Schulstr. 13",
"zip": "76543",
"city": "MUsterstadt",
"countryCode": "DE"
}
]
},
"xRechnung": {
"buyerReference": "04011000-1234512345-35",
"vendorNumberAtCustomer": "70123456"
},
"emailAddresses": {
"business": [
"business@lexoffice.de"
],
"office": [
"office@lexoffice.de"
],
"private": [
"private@lexoffice.de"
],
"other": [
"other@lexoffice.de"
]
},
"phoneNumbers": {
"business": [
"08000/1231"
],
"office": [
"08000/1232"
],
"mobile": [
"08000/1233"
],
"private": [
"08000/1234"
],
"fax": [
"08000/1235"
],
"other": [
"08000/1236"
]
},
"note": "Notizen",
"archived": false
}
Fields
id: ReadOnly<Uuid>
Unique id of the contact generated on creation by lexoffice.
organization_id: Option<Uuid>
Unique id of the organization the contact belongs to.
version: i64
Version (revision) number which will be increased on each change to handle optimistic locking.
Read-only.
roles: Roles
Defines contact roles and supports further contact information. For object details see below.
company: Option<Company>
Company related information. For details see below.
person: Option<Person>
Individual person related information. For details see below.
addresses: Option<Addresses>
Addresses (e.g. billing and shipping address(es)) for the contact. Contains a list for each address type. For details see below.
x_rechnung: Option<XRechnung>
XRechnung related properties of the contact
email_addresses: Option<EmailAddresses>
Email addresses for the contact. Contains a list for each EMail type. For details see below.
phone_numbers: Option<PhoneNumbers>
Phone numbers for the contact. Contains a list for each PhoneNumber type. For details see below.
note: Option<String>
A note to the contact. This is just an additional information.
archived: ReadOnly<bool>
Archived flag of the contact.
Read-only.
Implementations
impl Contact
[src]
pub fn builder() -> ContactBuilder<((), (), (), (), (), (), (), (), ())>
[src]
Create a builder for building Contact
.
On the builder, call .organization_id(...)
(optional), .roles(...)
, .company(...)
(optional), .person(...)
(optional), .addresses(...)
(optional), .x_rechnung(...)
(optional), .email_addresses(...)
(optional), .phone_numbers(...)
(optional), .note(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Contact
.
Trait Implementations
impl Clone for Contact
[src]
impl Debug for Contact
[src]
impl<'de> Deserialize<'de> for Contact
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl HasId for Contact
[src]
impl PartialEq<Contact> for Contact
[src]
impl Serialize for Contact
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Contact
[src]
Auto Trait Implementations
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnwindSafe for Contact
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,