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: u64

The amount.

§asset_type: AssetType

The asset type.

§public_key: PublicKey

The ownership’s address.

§asset_record_type: AssetRecordType

The record type of this asset.

§asset_tracing_policies: TracingPolicies

The tracing polices for this asset.

Implementations§

Create an AssetRecordTemplate with no associated asset tracing policy

Create an AssetRecordTemplate with asset tracing policies

Trait Implementations§

Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.