pub struct ContactBuilder { /* fields omitted */ }
Builder pattern for Contact
. Make sure you call build()
when you're done to consume the
builder and return the underlying Contact
.
Construct a new ContactBuilder
. Email address is the only required parameter
let builder = ContactBuilder::new("from@example.com");
Set the name of the Contact
let builder = ContactBuilder::new("from@example.com")
.name("From");
Consume the builder and return the underlying Contact
let builder = ContactBuilder::new("from@example.com").build();
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static