[−][src]Struct tgbot::types::ShippingOption
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]
I: Into<String>,
T: Into<String>,
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]
fn clone(&self) -> ShippingOption
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ShippingOption
[src]
impl Serialize for ShippingOption
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShippingOption
impl Send for ShippingOption
impl Sync for ShippingOption
impl Unpin for ShippingOption
impl UnwindSafe for ShippingOption
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,