[][src]Struct interledger_settlement::Quantity

pub struct Quantity {
    pub amount: String,
    pub scale: u8,
}

Fields

amount: Stringscale: u8

Methods

impl Quantity[src]

pub fn new(amount: impl ToString, scale: u8) -> Self[src]

Trait Implementations

impl Eq for Quantity[src]

impl Clone for Quantity[src]

impl PartialEq<Quantity> for Quantity[src]

impl Debug for Quantity[src]

impl Serialize for Quantity[src]

impl<'de> Deserialize<'de> for Quantity[src]

impl<B: BufStream> Extract<B> for Quantity[src]

type Future = ExtractFuture<B>

The future representing the completion of the extraction logic.

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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