Struct noah_api::anon_xfr::structs::OpenAnonAssetRecord
source · pub struct OpenAnonAssetRecord { /* private fields */ }Expand description
An opened anonymous asset record.
Implementations§
source§impl OpenAnonAssetRecord
impl OpenAnonAssetRecord
sourcepub fn update_mt_leaf_info(&mut self, mt_leat_info: MTLeafInfo)
pub fn update_mt_leaf_info(&mut self, mt_leat_info: MTLeafInfo)
Set the Merkle tree leaf information.
source§impl OpenAnonAssetRecord
impl OpenAnonAssetRecord
sourcepub fn get_amount(&self) -> u64
pub fn get_amount(&self) -> u64
Get record amount
sourcepub fn get_asset_type(&self) -> AssetType
pub fn get_asset_type(&self) -> AssetType
Get record asset type
sourcepub fn pub_key_ref(&self) -> &PublicKey
pub fn pub_key_ref(&self) -> &PublicKey
Get record public_key
sourcepub fn get_owner_memo(&self) -> Option<AxfrOwnerMemo>
pub fn get_owner_memo(&self) -> Option<AxfrOwnerMemo>
Get record’s owner memo
Trait Implementations§
source§impl Clone for OpenAnonAssetRecord
impl Clone for OpenAnonAssetRecord
source§fn clone(&self) -> OpenAnonAssetRecord
fn clone(&self) -> OpenAnonAssetRecord
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 OpenAnonAssetRecord
impl Debug for OpenAnonAssetRecord
source§impl Default for OpenAnonAssetRecord
impl Default for OpenAnonAssetRecord
source§impl<'de> Deserialize<'de> for OpenAnonAssetRecord
impl<'de> Deserialize<'de> for OpenAnonAssetRecord
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<OpenAnonAssetRecord> for OpenAnonAssetRecord
impl PartialEq<OpenAnonAssetRecord> for OpenAnonAssetRecord
source§fn eq(&self, other: &OpenAnonAssetRecord) -> bool
fn eq(&self, other: &OpenAnonAssetRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for OpenAnonAssetRecord
impl Serialize for OpenAnonAssetRecord
impl StructuralPartialEq for OpenAnonAssetRecord
Auto Trait Implementations§
impl RefUnwindSafe for OpenAnonAssetRecord
impl Send for OpenAnonAssetRecord
impl Sync for OpenAnonAssetRecord
impl Unpin for OpenAnonAssetRecord
impl UnwindSafe for OpenAnonAssetRecord
Blanket Implementations§
§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more