Struct elements::AssetIssuance
source · pub struct AssetIssuance {
pub asset_blinding_nonce: Tweak,
pub asset_entropy: [u8; 32],
pub amount: Value,
pub inflation_keys: Value,
}
Expand description
Description of an asset issuance in a transaction input
Fields§
§asset_blinding_nonce: Tweak
Zero for a new asset issuance; otherwise a blinding factor for the input
asset_entropy: [u8; 32]
Freeform entropy field
amount: Value
Amount of asset to issue
inflation_keys: Value
Amount of inflation keys to issue
Implementations§
source§impl AssetIssuance
impl AssetIssuance
Trait Implementations§
source§impl Clone for AssetIssuance
impl Clone for AssetIssuance
source§fn clone(&self) -> AssetIssuance
fn clone(&self) -> AssetIssuance
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 AssetIssuance
impl Debug for AssetIssuance
source§impl Decodable for AssetIssuance
impl Decodable for AssetIssuance
source§fn consensus_decode<D: Read>(d: D) -> Result<AssetIssuance, Error>
fn consensus_decode<D: Read>(d: D) -> Result<AssetIssuance, Error>
Decode an object with a well-defined format
source§impl Default for AssetIssuance
impl Default for AssetIssuance
source§impl Encodable for AssetIssuance
impl Encodable for AssetIssuance
source§impl Hash for AssetIssuance
impl Hash for AssetIssuance
source§impl Ord for AssetIssuance
impl Ord for AssetIssuance
source§fn cmp(&self, other: &AssetIssuance) -> Ordering
fn cmp(&self, other: &AssetIssuance) -> 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 AssetIssuance
impl PartialEq for AssetIssuance
source§fn eq(&self, other: &AssetIssuance) -> bool
fn eq(&self, other: &AssetIssuance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AssetIssuance
impl PartialOrd for AssetIssuance
source§fn partial_cmp(&self, other: &AssetIssuance) -> Option<Ordering>
fn partial_cmp(&self, other: &AssetIssuance) -> 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 Copy for AssetIssuance
impl Eq for AssetIssuance
impl StructuralPartialEq for AssetIssuance
Auto Trait Implementations§
impl RefUnwindSafe for AssetIssuance
impl Send for AssetIssuance
impl Sync for AssetIssuance
impl Unpin for AssetIssuance
impl UnwindSafe for AssetIssuance
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