[][src]Struct tgbot::types::ShippingOption

pub struct ShippingOption { /* fields omitted */ }

Shipping option

Methods

impl ShippingOption[src]

pub fn new<I, T>(id: I, title: T, prices: Vec<LabeledPrice>) -> Self where
    I: Into<String>,
    T: Into<String>, 
[src]

Creates a new ShippingOption

Arguments

  • id - Shipping option identifier
  • title - Option title
  • prices - List of price portions

pub fn id(&self) -> &str[src]

Returns an option id

pub fn title(&self) -> &str[src]

Returns an option title

pub fn prices(&self) -> &[LabeledPrice][src]

Returns price portions

Trait Implementations

impl Clone for ShippingOption[src]

impl Debug for ShippingOption[src]

impl Serialize for ShippingOption[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.