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

#[must_use]
pub struct Venue { /* fields omitted */ }

Represents an InputVenueMessageContent.

Implementations

impl Venue[src]

pub fn new(
    (latitude, longitude): (f64, f64),
    title: impl Into<String>,
    address: impl Into<String>
) -> Self
[src]

Constructs a Venue.

pub fn foursquare_id(self, id: impl Into<String>) -> Self[src]

Configures the Foursquare ID.

pub fn foursquare_type(self, foursquare_type: impl Into<String>) -> Self[src]

Configures the Foursquare type.

pub fn google_place_id(self, id: impl Into<String>) -> Self[src]

Configures the Google Places ID.

pub fn google_place_type(self, google_place_type: impl Into<String>) -> Self[src]

Configures the Google Places type.

Trait Implementations

impl Clone for Venue[src]

impl Debug for Venue[src]

impl From<Venue> for InputMessageContent[src]

impl PartialEq<Venue> for Venue[src]

impl Serialize for Venue[src]

impl StructuralPartialEq for Venue[src]

Auto Trait Implementations

impl RefUnwindSafe for Venue

impl Send for Venue

impl Sync for Venue

impl Unpin for Venue

impl UnwindSafe for Venue

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, 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.