Struct tbot::methods::EditMessageLocation[][src]

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

Edits a live location sent by the bot itself.

Reflects the editMessageLiveLocation method.

Implementations

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

pub fn horizontal_accuracy(self, horizontal_accuracy: f64) -> Self[src]

Configures the radius of uncertainty for the location in meters, in range 1.0..=1500.0.

Panics

Panics if horizontal_accuracy is not in range 1.0..=1500.0.

pub fn heading(self, heading: u16) -> Self[src]

Configures the direction in which the user is headed. The value must be in range 1..=360. Reflects the heading parameter.

Panics

Panics if heading is not in range 1..=360.

pub fn proximity_alert_radius(self, radius: u32) -> Self[src]

Configures the maximum distance for proximity alerts about a user approaching another, in meters. The value must be in range 1..=100_000. Reflects the proximity_alert_radius paramter.

Panics

Panics if the value is not in range 1..=100_000.

pub fn reply_markup(self, markup: Keyboard) -> Self[src]

Configures an inline keyboard for the message. Reflects the reply_markup parameter.

impl EditMessageLocation<'_>[src]

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

Calls the method.

Trait Implementations

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

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

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

Auto Trait Implementations

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

impl<'a> Send for EditMessageLocation<'a>

impl<'a> Sync for EditMessageLocation<'a>

impl<'a> Unpin for EditMessageLocation<'a>

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

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]