Struct frankenstein::api_params::SendContactParams
source · pub struct SendContactParams {
pub business_connection_id: Option<String>,
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub vcard: Option<String>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub reply_parameters: Option<ReplyParameters>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields§
§business_connection_id: Option<String>
§chat_id: ChatId
§message_thread_id: Option<i32>
§phone_number: String
§first_name: String
§last_name: Option<String>
§vcard: Option<String>
§disable_notification: Option<bool>
§protect_content: Option<bool>
§reply_parameters: Option<ReplyParameters>
§reply_markup: Option<ReplyMarkup>
Implementations§
source§impl SendContactParams
impl SendContactParams
sourcepub fn builder(
) -> SendContactParamsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> SendContactParamsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SendContactParams
.
On the builder, call .business_connection_id(...)
(optional), .chat_id(...)
, .message_thread_id(...)
(optional), .phone_number(...)
, .first_name(...)
, .last_name(...)
(optional), .vcard(...)
(optional), .disable_notification(...)
(optional), .protect_content(...)
(optional), .reply_parameters(...)
(optional), .reply_markup(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SendContactParams
.
Trait Implementations§
source§impl Clone for SendContactParams
impl Clone for SendContactParams
source§fn clone(&self) -> SendContactParams
fn clone(&self) -> SendContactParams
Returns a copy 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 Debug for SendContactParams
impl Debug for SendContactParams
source§impl<'de> Deserialize<'de> for SendContactParams
impl<'de> Deserialize<'de> for SendContactParams
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 SendContactParams
impl PartialEq for SendContactParams
source§fn eq(&self, other: &SendContactParams) -> bool
fn eq(&self, other: &SendContactParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendContactParams
impl Serialize for SendContactParams
impl Eq for SendContactParams
impl StructuralPartialEq for SendContactParams
Auto Trait Implementations§
impl Freeze for SendContactParams
impl RefUnwindSafe for SendContactParams
impl Send for SendContactParams
impl Sync for SendContactParams
impl Unpin for SendContactParams
impl UnwindSafe for SendContactParams
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