pub struct ContactBuilder { /* private fields */ }Expand description
Builder pattern for Contact. Make sure you call build() when you’re done to consume the
builder and return the underlying Contact.
Implementations§
Source§impl ContactBuilder
impl ContactBuilder
Sourcepub fn new(email: impl Into<String>) -> Self
pub fn new(email: impl Into<String>) -> Self
Construct a new ContactBuilder. Email address is the only required parameter
§Examples
let builder = ContactBuilder::new("from@example.com");Auto Trait Implementations§
impl Freeze for ContactBuilder
impl RefUnwindSafe for ContactBuilder
impl Send for ContactBuilder
impl Sync for ContactBuilder
impl Unpin for ContactBuilder
impl UnwindSafe for ContactBuilder
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