pub struct CandidDepositIdentifier {
pub asset_id: CandidAssetId,
pub block_height: CandidBlockHeight,
pub tx_id: Option<String>,
}Expand description
CandidDepositIdentifier
Fields§
§asset_id: CandidAssetIdThe asset id
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 CandidDepositIdentifier
impl CandidType for CandidDepositIdentifier
source§impl Clone for CandidDepositIdentifier
impl Clone for CandidDepositIdentifier
source§fn clone(&self) -> CandidDepositIdentifier
fn clone(&self) -> CandidDepositIdentifier
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 CandidDepositIdentifier
impl Debug for CandidDepositIdentifier
source§impl<'de> Deserialize<'de> for CandidDepositIdentifier
impl<'de> Deserialize<'de> for CandidDepositIdentifier
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<CandidDepositIdentifier> for DepositIdentifier
impl From<CandidDepositIdentifier> for DepositIdentifier
source§fn from(deposit_identifier: CandidDepositIdentifier) -> Self
fn from(deposit_identifier: CandidDepositIdentifier) -> Self
Converts to this type from the input type.
source§impl From<DepositIdentifier> for CandidDepositIdentifier
impl From<DepositIdentifier> for CandidDepositIdentifier
source§fn from(deposit_identifier: DepositIdentifier) -> Self
fn from(deposit_identifier: DepositIdentifier) -> Self
Converts to this type from the input type.
source§impl Hash for CandidDepositIdentifier
impl Hash for CandidDepositIdentifier
source§impl Ord for CandidDepositIdentifier
impl Ord for CandidDepositIdentifier
source§fn cmp(&self, other: &CandidDepositIdentifier) -> Ordering
fn cmp(&self, other: &CandidDepositIdentifier) -> 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 CandidDepositIdentifier
impl PartialEq for CandidDepositIdentifier
source§fn eq(&self, other: &CandidDepositIdentifier) -> bool
fn eq(&self, other: &CandidDepositIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for CandidDepositIdentifier
impl PartialOrd for CandidDepositIdentifier
source§fn partial_cmp(&self, other: &CandidDepositIdentifier) -> Option<Ordering>
fn partial_cmp(&self, other: &CandidDepositIdentifier) -> 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 CandidDepositIdentifier
impl StructuralPartialEq for CandidDepositIdentifier
Auto Trait Implementations§
impl Freeze for CandidDepositIdentifier
impl RefUnwindSafe for CandidDepositIdentifier
impl Send for CandidDepositIdentifier
impl Sync for CandidDepositIdentifier
impl Unpin for CandidDepositIdentifier
impl UnwindSafe for CandidDepositIdentifier
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