Struct ehelply::models::contact_base::ContactBase
source · [−]pub struct ContactBase {
pub phones: Option<Vec<ContactMethod>>,
pub email: Option<String>,
pub website: Option<String>,
pub socials: Option<Vec<ContactMethod>>,
}
Expand description
ContactBase : :param phones type: List[ContactKeys] or None :param email type: string or None :param website type: string or None :param socials type: List[ContactKeys] or None
Fields
phones: Option<Vec<ContactMethod>>
email: Option<String>
website: Option<String>
Implementations
sourceimpl ContactBase
impl ContactBase
sourcepub fn new() -> ContactBase
pub fn new() -> ContactBase
:param phones type: List[ContactKeys] or None :param email type: string or None :param website type: string or None :param socials type: List[ContactKeys] or None
Trait Implementations
sourceimpl Clone for ContactBase
impl Clone for ContactBase
sourcefn clone(&self) -> ContactBase
fn clone(&self) -> ContactBase
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ContactBase
impl Debug for ContactBase
sourceimpl Default for ContactBase
impl Default for ContactBase
sourcefn default() -> ContactBase
fn default() -> ContactBase
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ContactBase
impl<'de> Deserialize<'de> for ContactBase
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ContactBase> for ContactBase
impl PartialEq<ContactBase> for ContactBase
sourcefn eq(&self, other: &ContactBase) -> bool
fn eq(&self, other: &ContactBase) -> bool
sourceimpl Serialize for ContactBase
impl Serialize for ContactBase
impl StructuralPartialEq for ContactBase
Auto Trait Implementations
impl RefUnwindSafe for ContactBase
impl Send for ContactBase
impl Sync for ContactBase
impl Unpin for ContactBase
impl UnwindSafe for ContactBase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more