[][src]Struct tbot::methods::SendLocation

#[must_use = "methods do nothing unless turned into a future"]pub struct SendLocation<'a> { /* fields omitted */ }

Sends a location.

Reflects the sendLocation method.


impl<'a> SendLocation<'a>[src]

pub fn live_period(self, duration: u32) -> Self[src]

Confgiures for how long this location will be live and may be edited. Reflects the live_period parameter.

pub fn notification(self, state: NotificationState) -> Self[src]

Configures if the message will be sent silently. Reflects the disable_notification parameter.

pub fn reply_to_message_id(self, id: Id) -> Self[src]

Configures which message this location is sent in reply to. Reflects the reply_to_message_id parameter.

pub fn reply_markup(self, markup: impl Into<Any<'a>>) -> Self[src]

Configures a keyboard for the message. Reflects the reply_markup parameter.

impl<'_> SendLocation<'_>[src]

pub async fn call(self) -> Result<Message, MethodCall>[src]

Calls the method.

Trait Implementations

impl<'a> Clone for SendLocation<'a>[src]

impl<'a> Debug for SendLocation<'a>[src]

impl<'a> Serialize for SendLocation<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SendLocation<'a>

impl<'a> Send for SendLocation<'a>

impl<'a> Sync for SendLocation<'a>

impl<'a> Unpin for SendLocation<'a>

impl<'a> !UnwindSafe for SendLocation<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]