Struct frankenstein::objects::InputContactMessageContent
source · [−]pub struct InputContactMessageContent {
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub vcard: Option<String>,
}
Fields
phone_number: String
first_name: String
last_name: Option<String>
vcard: Option<String>
Implementations
sourceimpl InputContactMessageContent
impl InputContactMessageContent
sourcepub fn builder() -> InputContactMessageContentBuilder<((), (), (), ())>
pub fn builder() -> InputContactMessageContentBuilder<((), (), (), ())>
Create a builder for building InputContactMessageContent
.
On the builder, call .phone_number(...)
, .first_name(...)
, .last_name(...)
(optional), .vcard(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputContactMessageContent
.
Trait Implementations
sourceimpl Clone for InputContactMessageContent
impl Clone for InputContactMessageContent
sourcefn clone(&self) -> InputContactMessageContent
fn clone(&self) -> InputContactMessageContent
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 more
sourceimpl Debug for InputContactMessageContent
impl Debug for InputContactMessageContent
sourceimpl<'de> Deserialize<'de> for InputContactMessageContent
impl<'de> Deserialize<'de> for InputContactMessageContent
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<InputContactMessageContent> for InputContactMessageContent
impl PartialEq<InputContactMessageContent> for InputContactMessageContent
sourcefn eq(&self, other: &InputContactMessageContent) -> bool
fn eq(&self, other: &InputContactMessageContent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InputContactMessageContent) -> bool
fn ne(&self, other: &InputContactMessageContent) -> bool
This method tests for !=
.
impl StructuralPartialEq for InputContactMessageContent
Auto Trait Implementations
impl RefUnwindSafe for InputContactMessageContent
impl Send for InputContactMessageContent
impl Sync for InputContactMessageContent
impl Unpin for InputContactMessageContent
impl UnwindSafe for InputContactMessageContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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