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

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

Represents an LabeledPrice.

Implementations

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