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