[][src]Struct tbot::types::inline_query::result::Location

#[must_use]
pub struct Location<'a> { /* fields omitted */ }

Methods

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

pub const fn new(title: &'a str, (latitude, longitude): (f64, f64)) -> Self[src]

Constructs a Location.

pub fn live_period(self, period: u64) -> Self[src]

Configures the period while the location will be live.

pub fn input_message_content(
    self,
    content: impl Into<InputMessageContent<'a>>
) -> Self
[src]

Configures the content shown after sending the message.

pub fn thumb(self, thumb: Thumb<'a>) -> Self[src]

Configures the thumb of the location.

Trait Implementations

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

impl<'a> Copy for Location<'a>[src]

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

impl<'a> From<Location<'a>> for Kind<'a>[src]

impl<'a> PartialEq<Location<'a>> for Location<'a>[src]

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

impl<'a> StructuralPartialEq for Location<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Location<'a>

impl<'a> Send for Location<'a>

impl<'a> Sync for Location<'a>

impl<'a> Unpin for Location<'a>

impl<'a> UnwindSafe for Location<'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, U> Into<U> for T where
    U: From<T>, 
[src]

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.