Struct noah_api::xfr::structs::BlindAssetRecord
source · pub struct BlindAssetRecord {
pub amount: XfrAmount,
pub asset_type: XfrAssetType,
pub public_key: PublicKey,
}Expand description
A transfer input or output record as seen in the ledger. Amount and asset type can be confidential or non confidential.
Fields§
§amount: XfrAmountThe amount.
asset_type: XfrAssetTypeThe asset type.
public_key: PublicKeyThe owner’s address.
Implementations§
source§impl BlindAssetRecord
impl BlindAssetRecord
sourcepub fn get_record_type(&self) -> AssetRecordType
pub fn get_record_type(&self) -> AssetRecordType
Obtain the record type, which describes the level of confidentiality.
Trait Implementations§
source§impl Clone for BlindAssetRecord
impl Clone for BlindAssetRecord
source§fn clone(&self) -> BlindAssetRecord
fn clone(&self) -> BlindAssetRecord
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 BlindAssetRecord
impl Debug for BlindAssetRecord
source§impl<'de> Deserialize<'de> for BlindAssetRecord
impl<'de> Deserialize<'de> for BlindAssetRecord
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 PartialEq<BlindAssetRecord> for BlindAssetRecord
impl PartialEq<BlindAssetRecord> for BlindAssetRecord
source§fn eq(&self, other: &BlindAssetRecord) -> bool
fn eq(&self, other: &BlindAssetRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BlindAssetRecord
impl Serialize for BlindAssetRecord
impl Eq for BlindAssetRecord
impl StructuralEq for BlindAssetRecord
impl StructuralPartialEq for BlindAssetRecord
Auto Trait Implementations§
impl RefUnwindSafe for BlindAssetRecord
impl Send for BlindAssetRecord
impl Sync for BlindAssetRecord
impl Unpin for BlindAssetRecord
impl UnwindSafe for BlindAssetRecord
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more