Struct ex3_node_types::transaction::OriginalCandidDeposit
source · pub struct OriginalCandidDeposit {
pub from: String,
pub asset: CandidCryptoAsset,
pub amount: CandidAssetAmount,
pub block_height: CandidBlockHeight,
pub tx_id: Option<String>,
}Fields§
§from: StringFrom wallet address
asset: CandidCryptoAssetSpecify asset
amount: CandidAssetAmountThe amount
block_height: CandidBlockHeightThe block height Any chain does not have a block height? we use the timestamp instead? (TBD)
tx_id: Option<String>The blockchain transaction id For UTXO, it is the transaction id + tx index
Trait Implementations§
source§impl CandidType for OriginalCandidDeposit
impl CandidType for OriginalCandidDeposit
source§impl Clone for OriginalCandidDeposit
impl Clone for OriginalCandidDeposit
source§fn clone(&self) -> OriginalCandidDeposit
fn clone(&self) -> OriginalCandidDeposit
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 OriginalCandidDeposit
impl Debug for OriginalCandidDeposit
source§impl<'de> Deserialize<'de> for OriginalCandidDeposit
impl<'de> Deserialize<'de> for OriginalCandidDeposit
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 From<OriginalCandidDeposit> for OriginalDeposit
impl From<OriginalCandidDeposit> for OriginalDeposit
source§fn from(deposit: OriginalCandidDeposit) -> Self
fn from(deposit: OriginalCandidDeposit) -> Self
Converts to this type from the input type.
source§impl From<OriginalDeposit> for OriginalCandidDeposit
impl From<OriginalDeposit> for OriginalCandidDeposit
source§fn from(deposit: OriginalDeposit) -> Self
fn from(deposit: OriginalDeposit) -> Self
Converts to this type from the input type.
source§impl Hash for OriginalCandidDeposit
impl Hash for OriginalCandidDeposit
source§impl Ord for OriginalCandidDeposit
impl Ord for OriginalCandidDeposit
source§fn cmp(&self, other: &OriginalCandidDeposit) -> Ordering
fn cmp(&self, other: &OriginalCandidDeposit) -> 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 OriginalCandidDeposit
impl PartialEq for OriginalCandidDeposit
source§fn eq(&self, other: &OriginalCandidDeposit) -> bool
fn eq(&self, other: &OriginalCandidDeposit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for OriginalCandidDeposit
impl PartialOrd for OriginalCandidDeposit
source§fn partial_cmp(&self, other: &OriginalCandidDeposit) -> Option<Ordering>
fn partial_cmp(&self, other: &OriginalCandidDeposit) -> 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 moreimpl Eq for OriginalCandidDeposit
impl StructuralPartialEq for OriginalCandidDeposit
Auto Trait Implementations§
impl Freeze for OriginalCandidDeposit
impl RefUnwindSafe for OriginalCandidDeposit
impl Send for OriginalCandidDeposit
impl Sync for OriginalCandidDeposit
impl Unpin for OriginalCandidDeposit
impl UnwindSafe for OriginalCandidDeposit
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