Struct lexoffice::model::contacts::Contact[][src]

pub struct Contact {
    pub id: ReadOnly<Uuid>,
    pub organization_id: Option<Uuid>,
    pub version: i64,
    pub roles: Roles,
    pub company: Option<Company>,
    pub person: Option<Person>,
    pub addresses: Option<Addresses>,
    pub x_rechnung: Option<XRechnung>,
    pub email_addresses: Option<EmailAddresses>,
    pub phone_numbers: Option<PhoneNumbers>,
    pub note: Option<String>,
    pub archived: ReadOnly<bool>,
}
{
    "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]

impl HasId for Contact[src]

impl PartialEq<Contact> for Contact[src]

impl Serialize for Contact[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.