pub struct ContactBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ContactBuilder<S>
 
impl<S: State> ContactBuilder<S>
Sourcepub fn build(self) -> Contactwhere
    S: IsComplete,
 
pub fn build(self) -> Contactwhere
    S: IsComplete,
Finish building and return the requested object
Sourcepub fn name(self, value: impl Into<String>) -> ContactBuilder<SetName<S>>where
    S::Name: IsUnset,
 
pub fn name(self, value: impl Into<String>) -> ContactBuilder<SetName<S>>where
    S::Name: IsUnset,
Sourcepub fn maybe_name(
    self,
    value: Option<impl Into<String>>,
) -> ContactBuilder<SetName<S>>where
    S::Name: IsUnset,
 
pub fn maybe_name(
    self,
    value: Option<impl Into<String>>,
) -> ContactBuilder<SetName<S>>where
    S::Name: IsUnset,
Sourcepub fn url(self, value: impl Into<String>) -> ContactBuilder<SetUrl<S>>where
    S::Url: IsUnset,
 
pub fn url(self, value: impl Into<String>) -> ContactBuilder<SetUrl<S>>where
    S::Url: IsUnset,
Sourcepub fn maybe_url(
    self,
    value: Option<impl Into<String>>,
) -> ContactBuilder<SetUrl<S>>where
    S::Url: IsUnset,
 
pub fn maybe_url(
    self,
    value: Option<impl Into<String>>,
) -> ContactBuilder<SetUrl<S>>where
    S::Url: IsUnset,
Sourcepub fn email(self, value: impl Into<String>) -> ContactBuilder<SetEmail<S>>where
    S::Email: IsUnset,
 
pub fn email(self, value: impl Into<String>) -> ContactBuilder<SetEmail<S>>where
    S::Email: IsUnset,
Sourcepub fn maybe_email(
    self,
    value: Option<impl Into<String>>,
) -> ContactBuilder<SetEmail<S>>where
    S::Email: IsUnset,
 
pub fn maybe_email(
    self,
    value: Option<impl Into<String>>,
) -> ContactBuilder<SetEmail<S>>where
    S::Email: IsUnset,
Sourcepub fn extensions(
    self,
    value: impl Into<Extensions>,
) -> ContactBuilder<SetExtensions<S>>where
    S::Extensions: IsUnset,
 
pub fn extensions(
    self,
    value: impl Into<Extensions>,
) -> ContactBuilder<SetExtensions<S>>where
    S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
    self,
    value: Option<impl Into<Extensions>>,
) -> ContactBuilder<SetExtensions<S>>where
    S::Extensions: IsUnset,
 
pub fn maybe_extensions(
    self,
    value: Option<impl Into<Extensions>>,
) -> ContactBuilder<SetExtensions<S>>where
    S::Extensions: IsUnset,
Trait Implementations§
Source§impl<S: IsComplete> From<ContactBuilder<S>> for Contact
 
impl<S: IsComplete> From<ContactBuilder<S>> for Contact
Source§fn from(builder: ContactBuilder<S>) -> Self
 
fn from(builder: ContactBuilder<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for ContactBuilder<S>
impl<S> RefUnwindSafe for ContactBuilder<S>
impl<S> Send for ContactBuilder<S>
impl<S> Sync for ContactBuilder<S>
impl<S> Unpin for ContactBuilder<S>
impl<S> UnwindSafe for ContactBuilder<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