pub struct SendLocation { /* private fields */ }
Expand description
Use this method to send point on the map.
Implementations§
Source§impl SendLocation
impl SendLocation
pub fn new<C>(chat: C, latitude: f32, longitude: f32) -> SendLocationwhere
C: ToChatRef,
Sourcepub fn live_period(&mut self, period: i64) -> &mut SendLocation
pub fn live_period(&mut self, period: i64) -> &mut SendLocation
Period in seconds for which the location will be updated, should be between 60 and 86400.
pub fn disable_notification(&mut self) -> &mut SendLocation
pub fn reply_to<R>(&mut self, to: R) -> &mut SendLocationwhere
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendLocationwhere
R: Into<ReplyMarkup>,
Trait Implementations§
Source§impl Clone for SendLocation
impl Clone for SendLocation
Source§fn clone(&self) -> SendLocation
fn clone(&self) -> SendLocation
Returns a duplicate 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 SendLocation
impl Debug for SendLocation
Source§impl PartialEq for SendLocation
impl PartialEq for SendLocation
Source§impl PartialOrd for SendLocation
impl PartialOrd for SendLocation
Source§impl Request for SendLocation
impl Request for SendLocation
type Type = JsonRequestType<SendLocation>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl Serialize for SendLocation
impl Serialize for SendLocation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SendLocation
Auto Trait Implementations§
impl Freeze for SendLocation
impl RefUnwindSafe for SendLocation
impl Send for SendLocation
impl Sync for SendLocation
impl Unpin for SendLocation
impl UnwindSafe for SendLocation
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