Struct tbot::types::LabeledPrice[][src]

pub struct LabeledPrice { /* fields omitted */ }

Represents an LabeledPrice.


impl LabeledPrice[src]

pub fn new(label: impl Into<String>, amount: u32) -> Self[src]

Constructs a LabeledPrice.

Trait Implementations

impl Clone for LabeledPrice[src]

impl Debug for LabeledPrice[src]

impl Hash for LabeledPrice[src]

impl PartialEq<LabeledPrice> for LabeledPrice[src]

impl Serialize for LabeledPrice[src]

impl Eq for LabeledPrice[src]

impl StructuralEq for LabeledPrice[src]

impl StructuralPartialEq for LabeledPrice[src]

Auto Trait Implementations

impl RefUnwindSafe for LabeledPrice

impl Send for LabeledPrice

impl Sync for LabeledPrice

impl Unpin for LabeledPrice

impl UnwindSafe for LabeledPrice

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.