Struct noah_api::xfr::structs::AssetRecordTemplate
source · pub struct AssetRecordTemplate {
pub amount: u64,
pub asset_type: AssetType,
pub public_key: PublicKey,
pub asset_record_type: AssetRecordType,
pub asset_tracing_policies: TracingPolicies,
}Expand description
An asset record template.
Fields§
§amount: u64The amount.
asset_type: AssetTypeThe asset type.
public_key: PublicKeyThe ownership’s address.
asset_record_type: AssetRecordTypeThe record type of this asset.
asset_tracing_policies: TracingPoliciesThe tracing polices for this asset.
Implementations§
source§impl AssetRecordTemplate
impl AssetRecordTemplate
sourcepub fn with_no_asset_tracing(
amount: u64,
asset_type: AssetType,
asset_record_type: AssetRecordType,
address: PublicKey
) -> AssetRecordTemplate
pub fn with_no_asset_tracing(
amount: u64,
asset_type: AssetType,
asset_record_type: AssetRecordType,
address: PublicKey
) -> AssetRecordTemplate
Create an AssetRecordTemplate with no associated asset tracing policy
sourcepub fn with_asset_tracing(
amount: u64,
asset_type: AssetType,
asset_record_type: AssetRecordType,
address: PublicKey,
policies: TracingPolicies
) -> AssetRecordTemplate
pub fn with_asset_tracing(
amount: u64,
asset_type: AssetType,
asset_record_type: AssetRecordType,
address: PublicKey,
policies: TracingPolicies
) -> AssetRecordTemplate
Create an AssetRecordTemplate with asset tracing policies
Trait Implementations§
source§impl<'de> Deserialize<'de> for AssetRecordTemplate
impl<'de> Deserialize<'de> for AssetRecordTemplate
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