pub struct GarbageContact(/* private fields */);
Expand description
A string that we couldn’t parse into an EmailContact
but implements
the Contactish
trait regardless
Trait Implementations§
Source§impl Clone for GarbageContact
impl Clone for GarbageContact
Source§fn clone(&self) -> GarbageContact
fn clone(&self) -> GarbageContact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Contactish for GarbageContact
impl Contactish for GarbageContact
Source§fn comment(&self) -> Option<&String>
fn comment(&self) -> Option<&String>
Returns the actual string we couldn’t interpret as EmailContact
fn new<T>(garbage: T) -> Self
fn set_comment<T>(self, garbage: T) -> Self
fn set_email<T>(self, _: T) -> Self
fn set_name<T>(self, _: T) -> Self
fn to_contact(self) -> Contact
Source§impl Debug for GarbageContact
impl Debug for GarbageContact
Source§impl Default for GarbageContact
impl Default for GarbageContact
Source§fn default() -> GarbageContact
fn default() -> GarbageContact
Returns the “default value” for a type. Read more
Source§impl From<GarbageContact> for Contact
impl From<GarbageContact> for Contact
Source§fn from(garbage: GarbageContact) -> Contact
fn from(garbage: GarbageContact) -> Contact
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GarbageContact
impl RefUnwindSafe for GarbageContact
impl Send for GarbageContact
impl Sync for GarbageContact
impl Unpin for GarbageContact
impl UnwindSafe for GarbageContact
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