Struct telegram_bot_fork_raw::requests::send_location::SendLocation
source · pub struct SendLocation { /* private fields */ }
Expand description
Use this method to send point on the map.
Implementations
sourceimpl SendLocation
impl SendLocation
pub fn new<C>(chat: C, latitude: Float, longitude: Float) -> Selfwhere
C: ToChatRef,
sourcepub fn live_period(&mut self, period: Integer) -> &mut Self
pub fn live_period(&mut self, period: Integer) -> &mut Self
Period in seconds for which the location will be updated, should be between 60 and 86400.
pub fn disable_notification(&mut self) -> &mut Self
pub fn reply_to<R>(&mut self, to: R) -> &mut Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Selfwhere
R: Into<ReplyMarkup>,
Trait Implementations
sourceimpl Clone for SendLocation
impl Clone for SendLocation
sourcefn clone(&self) -> SendLocation
fn clone(&self) -> SendLocation
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 moresourceimpl Debug for SendLocation
impl Debug for SendLocation
sourceimpl PartialEq<SendLocation> for SendLocation
impl PartialEq<SendLocation> for SendLocation
sourcefn eq(&self, other: &SendLocation) -> bool
fn eq(&self, other: &SendLocation) -> bool
sourceimpl PartialOrd<SendLocation> for SendLocation
impl PartialOrd<SendLocation> for SendLocation
sourcefn partial_cmp(&self, other: &SendLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &SendLocation) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl 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>
sourceimpl Serialize for SendLocation
impl Serialize for SendLocation
impl StructuralPartialEq for SendLocation
Auto Trait Implementations
impl RefUnwindSafe for SendLocation
impl Send for SendLocation
impl Sync for SendLocation
impl Unpin for SendLocation
impl UnwindSafe for SendLocation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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