pub struct CustomerBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CustomerBuilder<S>
impl<S: State> CustomerBuilder<S>
Sourcepub fn build(self) -> Customerwhere
S: IsComplete,
pub fn build(self) -> Customerwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: CustomerId) -> CustomerBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: CustomerId) -> CustomerBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Source-backed id carried by this normalized pet-resort entity.
Sourcepub fn full_name(self, value: Name) -> CustomerBuilder<SetFullName<S>>where
S::FullName: IsUnset,
pub fn full_name(self, value: Name) -> CustomerBuilder<SetFullName<S>>where
S::FullName: IsUnset,
Required.
Source-backed full name carried by this normalized pet-resort entity.
Sourcepub fn email(self, value: Email) -> CustomerBuilder<SetEmail<S>>where
S::Email: IsUnset,
pub fn email(self, value: Email) -> CustomerBuilder<SetEmail<S>>where
S::Email: IsUnset,
Sourcepub fn maybe_email(self, value: Option<Email>) -> CustomerBuilder<SetEmail<S>>where
S::Email: IsUnset,
pub fn maybe_email(self, value: Option<Email>) -> CustomerBuilder<SetEmail<S>>where
S::Email: IsUnset,
Sourcepub fn mobile_phone(self, value: Phone) -> CustomerBuilder<SetMobilePhone<S>>where
S::MobilePhone: IsUnset,
pub fn mobile_phone(self, value: Phone) -> CustomerBuilder<SetMobilePhone<S>>where
S::MobilePhone: IsUnset,
Sourcepub fn maybe_mobile_phone(
self,
value: Option<Phone>,
) -> CustomerBuilder<SetMobilePhone<S>>where
S::MobilePhone: IsUnset,
pub fn maybe_mobile_phone(
self,
value: Option<Phone>,
) -> CustomerBuilder<SetMobilePhone<S>>where
S::MobilePhone: IsUnset,
Sourcepub fn preferred_contact(
self,
value: ContactChannel,
) -> CustomerBuilder<SetPreferredContact<S>>where
S::PreferredContact: IsUnset,
pub fn preferred_contact(
self,
value: ContactChannel,
) -> CustomerBuilder<SetPreferredContact<S>>where
S::PreferredContact: IsUnset,
Required.
Source-backed preferred contact carried by this normalized pet-resort entity.
Sourcepub fn portal_account(
self,
value: PortalAccountRef,
) -> CustomerBuilder<SetPortalAccount<S>>where
S::PortalAccount: IsUnset,
pub fn portal_account(
self,
value: PortalAccountRef,
) -> CustomerBuilder<SetPortalAccount<S>>where
S::PortalAccount: IsUnset,
Sourcepub fn maybe_portal_account(
self,
value: Option<PortalAccountRef>,
) -> CustomerBuilder<SetPortalAccount<S>>where
S::PortalAccount: IsUnset,
pub fn maybe_portal_account(
self,
value: Option<PortalAccountRef>,
) -> CustomerBuilder<SetPortalAccount<S>>where
S::PortalAccount: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for CustomerBuilder<S>
impl<S> RefUnwindSafe for CustomerBuilder<S>
impl<S> Send for CustomerBuilder<S>
impl<S> Sync for CustomerBuilder<S>
impl<S> Unpin for CustomerBuilder<S>
impl<S> UnsafeUnpin for CustomerBuilder<S>
impl<S> UnwindSafe for CustomerBuilder<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more