pub struct PersonBuilder { /* private fields */ }Expand description
Builder for Person.
Implementations§
Source§impl PersonBuilder
impl PersonBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A human-readable name for the person.
Sourcepub fn email<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn email<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
An email address for the person.
Sourcepub fn uri<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn uri<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
A Web page for the person.
Sourcepub fn extensions<VALUE: Into<ExtensionMap>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn extensions<VALUE: Into<ExtensionMap>>( &mut self, value: VALUE, ) -> &mut Self
A list of extensions for the person.
Trait Implementations§
Source§impl Clone for PersonBuilder
impl Clone for PersonBuilder
Source§fn clone(&self) -> PersonBuilder
fn clone(&self) -> PersonBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PersonBuilder
impl RefUnwindSafe for PersonBuilder
impl Send for PersonBuilder
impl Sync for PersonBuilder
impl Unpin for PersonBuilder
impl UnsafeUnpin for PersonBuilder
impl UnwindSafe for PersonBuilder
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