[][src]Struct tgbot::types::InputMessageContentVenue

pub struct InputMessageContentVenue { /* fields omitted */ }

Venue message to be sent as the result of an inline query

Methods

impl InputMessageContentVenue[src]

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

Creates a new InputMessageContentVenue with empty optional parameters

Arguments

  • latitude - Latitude of the venue in degrees
  • longitude - Longitude of the venue in degrees
  • title - Name of the venue
  • address - Address of the venue

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

Foursquare identifier of the venue, if known

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

Foursquare type of the venue, if known

For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”

Trait Implementations

impl Clone for InputMessageContentVenue[src]

impl Debug for InputMessageContentVenue[src]

impl From<InputMessageContentVenue> for InputMessageContent[src]

impl Serialize for InputMessageContentVenue[src]

Auto Trait Implementations

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.