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

pub struct Addresses {
    pub billing: Option<Vec<Address>>,
    pub shipping: Option<Vec<Address>>,
}

Use this objects to provide billing and shipping information of a contact.

Please note that it’s only possible to create and change contacts with a maximum of one billing and/or one shipping address. It’s possible to retrieve contacts with more than one billing and shipping address, but it’s not possible to update such a contact via the REST API.

Fields

billing: Option<Vec<Address>>

A list of billing addresses. Each entry is an object of address.

shipping: Option<Vec<Address>>

A list of shipping addresses. Each entry is an object of address.

Implementations

impl Addresses[src]

pub fn builder() -> AddressesBuilder<((), ())>[src]

Create a builder for building Addresses. On the builder, call .billing(...)(optional), .shipping(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of Addresses.

Trait Implementations

impl Clone for Addresses[src]

impl Debug for Addresses[src]

impl<'de> Deserialize<'de> for Addresses[src]

impl PartialEq<Addresses> for Addresses[src]

impl Serialize for Addresses[src]

impl StructuralPartialEq for Addresses[src]

Auto Trait Implementations

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,