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

#[non_exhaustive]
#[must_use]
pub struct LabeledPrice<'a> { /* fields omitted */ }

Represents an LabeledPrice.

Methods

impl<'a> LabeledPrice<'a>[src]

pub const fn new(label: &'a str, amount: u32) -> Self[src]

Constructs a LabeledPrice.

Trait Implementations

impl<'a> Clone for LabeledPrice<'a>[src]

impl<'a> Copy for LabeledPrice<'a>[src]

impl<'a> Debug for LabeledPrice<'a>[src]

impl<'a> Eq for LabeledPrice<'a>[src]

impl<'a> Hash for LabeledPrice<'a>[src]

impl<'a> PartialEq<LabeledPrice<'a>> for LabeledPrice<'a>[src]

impl<'a> Serialize for LabeledPrice<'a>[src]

impl<'a> StructuralEq for LabeledPrice<'a>[src]

impl<'a> StructuralPartialEq for LabeledPrice<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for LabeledPrice<'a>

impl<'a> Send for LabeledPrice<'a>

impl<'a> Sync for LabeledPrice<'a>

impl<'a> Unpin for LabeledPrice<'a>

impl<'a> UnwindSafe for LabeledPrice<'a>

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.