[][src]Struct jlib::message::common::amount::Amount

pub struct Amount {
    pub value: String,
    pub currency: Option<String>,
    pub issuer: Option<String>,
}

Fields

value: Stringcurrency: Option<String>issuer: Option<String>

Methods

impl Amount[src]

pub fn new(
    currency: Option<String>,
    value: String,
    issuer: Option<String>
) -> Self
[src]

pub fn is_string(&self) -> bool[src]

pub fn is_native(&self) -> bool[src]

pub fn mul_million(value: &String) -> String[src]

Trait Implementations

impl CommandConversion for Amount[src]

type T = Amount

impl Default for Amount[src]

impl Debug for Amount[src]

impl FromStr for Amount[src]

type Err = Void

The associated error which can be returned from parsing.

impl Serialize for Amount[src]

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

Auto Trait Implementations

impl Sync for Amount

impl Send for Amount

impl Unpin for Amount

impl RefUnwindSafe for Amount

impl UnwindSafe for Amount

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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> Same<T> for T

type Output = T

Should always be Self

impl<T> Downcast for T where
    T: Any