Struct tbot::types::input_message_content::Location[][src]

pub struct Location { /* fields omitted */ }

Represents an InputLocationMessageContent.


impl Location[src]

pub const fn new((latitude, longitude): (f64, f64)) -> Self[src]

Constructs a Location.

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 if horizontal_accuracy is not in range 1.0..=1500.0.

pub const fn live_location(self, live_location: Live) -> Self[src]

Configures a live location.

Trait Implementations

impl Clone for Location[src]

impl Debug for Location[src]

impl From<Location> for InputMessageContent[src]

impl PartialEq<Location> for Location[src]

impl Serialize for Location[src]

impl Copy for Location[src]

impl StructuralPartialEq for Location[src]

Auto Trait Implementations

impl RefUnwindSafe for Location

impl Send for Location

impl Sync for Location

impl Unpin for Location

impl UnwindSafe for Location

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> Same<T> for T

type Output = T

Should always be Self

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.