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

#[must_use]pub struct AddressBuilder<TypedBuilderFields> { /* fields omitted */ }

Builder for Address instances.

See Address::builder() for more info.

Implementations

impl<__street, __zip, __city, __country_code> AddressBuilder<((), __street, __zip, __city, __country_code)>[src]

pub fn supplement(
    self,
    supplement: String
) -> AddressBuilder<((Option<String>,), __street, __zip, __city, __country_code)>
[src]

impl<__supplement, __zip, __city, __country_code> AddressBuilder<(__supplement, (), __zip, __city, __country_code)>[src]

pub fn street(
    self,
    street: String
) -> AddressBuilder<(__supplement, (Option<String>,), __zip, __city, __country_code)>
[src]

impl<__supplement, __street, __city, __country_code> AddressBuilder<(__supplement, __street, (), __city, __country_code)>[src]

pub fn zip(
    self,
    zip: String
) -> AddressBuilder<(__supplement, __street, (Option<String>,), __city, __country_code)>
[src]

impl<__supplement, __street, __zip, __country_code> AddressBuilder<(__supplement, __street, __zip, (), __country_code)>[src]

pub fn city(
    self,
    city: String
) -> AddressBuilder<(__supplement, __street, __zip, (Option<String>,), __country_code)>
[src]

impl<__supplement, __street, __zip, __city> AddressBuilder<(__supplement, __street, __zip, __city, ())>[src]

pub fn country_code(
    self,
    country_code: impl Into<CountryCode>
) -> AddressBuilder<(__supplement, __street, __zip, __city, (CountryCode,))>
[src]

impl<__supplement: AddressBuilder_Optional<Option<String>>, __street: AddressBuilder_Optional<Option<String>>, __zip: AddressBuilder_Optional<Option<String>>, __city: AddressBuilder_Optional<Option<String>>> AddressBuilder<(__supplement, __street, __zip, __city, (CountryCode,))>[src]

pub fn build(self) -> Address[src]

Finalise the builder and create its Address instance

Trait Implementations

impl<TypedBuilderFields> Clone for AddressBuilder<TypedBuilderFields> where
    TypedBuilderFields: Clone
[src]

Auto Trait Implementations

impl<TypedBuilderFields> RefUnwindSafe for AddressBuilder<TypedBuilderFields> where
    TypedBuilderFields: RefUnwindSafe

impl<TypedBuilderFields> Send for AddressBuilder<TypedBuilderFields> where
    TypedBuilderFields: Send

impl<TypedBuilderFields> Sync for AddressBuilder<TypedBuilderFields> where
    TypedBuilderFields: Sync

impl<TypedBuilderFields> Unpin for AddressBuilder<TypedBuilderFields> where
    TypedBuilderFields: Unpin

impl<TypedBuilderFields> UnwindSafe for AddressBuilder<TypedBuilderFields> where
    TypedBuilderFields: UnwindSafe

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> 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.