pub struct ContactOption {
pub email: Option<String>,
pub name: String,
}
Fields§
§email: Option<String>
§name: String
Trait Implementations§
Source§impl Clone for ContactOption
impl Clone for ContactOption
Source§fn clone(&self) -> ContactOption
fn clone(&self) -> ContactOption
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContactOption
impl Debug for ContactOption
Source§impl Default for ContactOption
impl Default for ContactOption
Source§fn default() -> ContactOption
fn default() -> ContactOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContactOption
impl<'de> Deserialize<'de> for ContactOption
Source§fn 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
Source§impl PartialEq for ContactOption
impl PartialEq for ContactOption
Source§impl Serialize for ContactOption
impl Serialize for ContactOption
impl StructuralPartialEq for ContactOption
Auto Trait Implementations§
impl Freeze for ContactOption
impl RefUnwindSafe for ContactOption
impl Send for ContactOption
impl Sync for ContactOption
impl Unpin for ContactOption
impl UnwindSafe for ContactOption
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