Struct frankenstein::api_params::SendLocationParams
source · pub struct SendLocationParams {Show 13 fields
pub business_connection_id: Option<String>,
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub latitude: f64,
pub longitude: f64,
pub horizontal_accuracy: Option<f64>,
pub live_period: Option<u32>,
pub heading: Option<u16>,
pub proximity_alert_radius: Option<u32>,
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>
§latitude: f64
§longitude: f64
§horizontal_accuracy: Option<f64>
§live_period: Option<u32>
§heading: Option<u16>
§proximity_alert_radius: Option<u32>
§disable_notification: Option<bool>
§protect_content: Option<bool>
§reply_parameters: Option<ReplyParameters>
§reply_markup: Option<ReplyMarkup>
Implementations§
source§impl SendLocationParams
impl SendLocationParams
sourcepub fn builder(
) -> SendLocationParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> SendLocationParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building SendLocationParams
.
On the builder, call .business_connection_id(...)
(optional), .chat_id(...)
, .message_thread_id(...)
(optional), .latitude(...)
, .longitude(...)
, .horizontal_accuracy(...)
(optional), .live_period(...)
(optional), .heading(...)
(optional), .proximity_alert_radius(...)
(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 SendLocationParams
.
Trait Implementations§
source§impl Clone for SendLocationParams
impl Clone for SendLocationParams
source§fn clone(&self) -> SendLocationParams
fn clone(&self) -> SendLocationParams
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 SendLocationParams
impl Debug for SendLocationParams
source§impl<'de> Deserialize<'de> for SendLocationParams
impl<'de> Deserialize<'de> for SendLocationParams
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 SendLocationParams
impl PartialEq for SendLocationParams
source§fn eq(&self, other: &SendLocationParams) -> bool
fn eq(&self, other: &SendLocationParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendLocationParams
impl Serialize for SendLocationParams
impl StructuralPartialEq for SendLocationParams
Auto Trait Implementations§
impl Freeze for SendLocationParams
impl RefUnwindSafe for SendLocationParams
impl Send for SendLocationParams
impl Sync for SendLocationParams
impl Unpin for SendLocationParams
impl UnwindSafe for SendLocationParams
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