pub struct XRPAmount<'a>(pub Cow<'a, str>);
Expand description
Represents an amount of XRP in Drops.
Tuple Fields§
§0: Cow<'a, str>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for XRPAmount<'a>
impl<'de, 'a> Deserialize<'de> for XRPAmount<'a>
Source§fn deserialize<D>(deserializer: D) -> XRPLModelResult<XRPAmount<'a>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> XRPLModelResult<XRPAmount<'a>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<BigDecimal> for XRPAmount<'a>
impl<'a> From<BigDecimal> for XRPAmount<'a>
Source§fn from(value: BigDecimal) -> Self
fn from(value: BigDecimal) -> Self
Converts to this type from the input type.
Source§impl<'a> Model for XRPAmount<'a>
impl<'a> Model for XRPAmount<'a>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Collects a models errors and returns the first error that occurs.
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
Simply forwards the error from
get_errors
if there was one.Source§impl<'a> Ord for XRPAmount<'a>
impl<'a> Ord for XRPAmount<'a>
Source§impl<'a> PartialOrd for XRPAmount<'a>
impl<'a> PartialOrd for XRPAmount<'a>
Source§impl<'a> TryFrom<Value> for XRPAmount<'a>
impl<'a> TryFrom<Value> for XRPAmount<'a>
Source§type Error = XRPLModelException
type Error = XRPLModelException
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<BigDecimal> for XRPAmount<'a>
impl<'a> TryInto<BigDecimal> for XRPAmount<'a>
Source§type Error = XRPLModelException
type Error = XRPLModelException
The type returned in the event of a conversion error.
Source§fn try_into(self) -> XRPLModelResult<BigDecimal, Self::Error>
fn try_into(self) -> XRPLModelResult<BigDecimal, Self::Error>
Performs the conversion.
Source§impl<'a> TryInto<f64> for XRPAmount<'a>
impl<'a> TryInto<f64> for XRPAmount<'a>
Source§type Error = XRPLModelException
type Error = XRPLModelException
The type returned in the event of a conversion error.
Source§impl<'a> TryInto<u32> for XRPAmount<'a>
impl<'a> TryInto<u32> for XRPAmount<'a>
Source§type Error = XRPLModelException
type Error = XRPLModelException
The type returned in the event of a conversion error.
impl<'a> Eq for XRPAmount<'a>
impl<'a> StructuralPartialEq for XRPAmount<'a>
Auto Trait Implementations§
impl<'a> Freeze for XRPAmount<'a>
impl<'a> RefUnwindSafe for XRPAmount<'a>
impl<'a> Send for XRPAmount<'a>
impl<'a> Sync for XRPAmount<'a>
impl<'a> Unpin for XRPAmount<'a>
impl<'a> UnwindSafe for XRPAmount<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.