Struct primitives::account::DepositInfo
source · pub struct DepositInfo {
pub amount: U256,
pub deposit_time: U256,
pub accumulated_interest_rate: U256,
}
Fields§
§amount: U256
This is the number of tokens in this deposit.
deposit_time: U256
This is the timestamp when this deposit happened, measured in the number of past blocks. It will be used to calculate the service charge.
accumulated_interest_rate: U256
This is the accumulated interest rate when this deposit happened.
Trait Implementations§
source§impl Clone for DepositInfo
impl Clone for DepositInfo
source§fn clone(&self) -> DepositInfo
fn clone(&self) -> DepositInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DepositInfo
impl Debug for DepositInfo
source§impl Decodable for DepositInfo
impl Decodable for DepositInfo
source§impl<'de> Deserialize<'de> for DepositInfo
impl<'de> Deserialize<'de> for DepositInfo
source§fn 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
source§impl Encodable for DepositInfo
impl Encodable for DepositInfo
source§impl Ord for DepositInfo
impl Ord for DepositInfo
source§fn cmp(&self, other: &DepositInfo) -> Ordering
fn cmp(&self, other: &DepositInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DepositInfo
impl PartialEq for DepositInfo
source§fn eq(&self, other: &DepositInfo) -> bool
fn eq(&self, other: &DepositInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DepositInfo
impl PartialOrd for DepositInfo
source§fn partial_cmp(&self, other: &DepositInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &DepositInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for DepositInfo
impl Serialize for DepositInfo
impl Eq for DepositInfo
impl StructuralPartialEq for DepositInfo
Auto Trait Implementations§
impl RefUnwindSafe for DepositInfo
impl Send for DepositInfo
impl Sync for DepositInfo
impl Unpin for DepositInfo
impl UnwindSafe for DepositInfo
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