Struct primitives::Deposit
source · pub struct Deposit<N> {
pub total: N,
}
Fields
total: N
Implementations
sourceimpl Deposit<UnifiedNum>
impl Deposit<UnifiedNum>
pub fn to_precision(&self, precision: u8) -> Deposit<BigNum>
pub fn from_precision(
deposit: Deposit<BigNum>,
precision: u8
) -> Option<Deposit<UnifiedNum>>
Trait Implementations
sourceimpl<'de, N> Deserialize<'de> for Deposit<N>where
N: Deserialize<'de>,
impl<'de, N> Deserialize<'de> for Deposit<N>where
N: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<N: PartialEq> PartialEq<Deposit<N>> for Deposit<N>
impl<N: PartialEq> PartialEq<Deposit<N>> for Deposit<N>
impl<N: Eq> Eq for Deposit<N>
impl<N> StructuralEq for Deposit<N>
impl<N> StructuralPartialEq for Deposit<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Deposit<N>where
N: RefUnwindSafe,
impl<N> Send for Deposit<N>where
N: Send,
impl<N> Sync for Deposit<N>where
N: Sync,
impl<N> Unpin for Deposit<N>where
N: Unpin,
impl<N> UnwindSafe for Deposit<N>where
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more