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

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

Builder for Person instances.

See Person::builder() for more info.

Implementations

impl<__first_name, __last_name> PersonBuilder<((), __first_name, __last_name)>[src]

pub fn salutation(
    self,
    salutation: String
) -> PersonBuilder<((Option<String>,), __first_name, __last_name)>
[src]

impl<__salutation, __last_name> PersonBuilder<(__salutation, (), __last_name)>[src]

pub fn first_name(
    self,
    first_name: String
) -> PersonBuilder<(__salutation, (Option<String>,), __last_name)>
[src]

impl<__salutation, __first_name> PersonBuilder<(__salutation, __first_name, ())>[src]

pub fn last_name(
    self,
    last_name: impl Into<String>
) -> PersonBuilder<(__salutation, __first_name, (String,))>
[src]

impl<__salutation: PersonBuilder_Optional<Option<String>>, __first_name: PersonBuilder_Optional<Option<String>>> PersonBuilder<(__salutation, __first_name, (String,))>[src]

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

Finalise the builder and create its Person instance

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

impl<TypedBuilderFields> UnwindSafe for PersonBuilder<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.