[−][src]Struct jlib::message::common::amount::Amount
Fields
value: String
currency: Option<String>
issuer: Option<String>
Methods
impl Amount
[src]
pub fn new(
currency: Option<String>,
value: String,
issuer: Option<String>
) -> Self
[src]
currency: Option<String>,
value: String,
issuer: Option<String>
) -> Self
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
fn to_string(&self) -> Result<String, Error>
[src]
fn box_to_raw(&self) -> &dyn Any
[src]
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Serialize for Amount
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Amount
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Downcast for T where
T: Any,
T: Any,