pub struct AssetGroup {
pub asset_id: Option<AssetId>,
pub control_asset: Option<AssetRef>,
pub metadata: Option<Metadata>,
pub inputs: Vec<AssetInput>,
pub outputs: Vec<AssetOutput>,
}Expand description
A single asset group within a packet.
Fields§
§asset_id: Option<AssetId>If None, this is a fresh asset issuance. The asset ID will be derived from
(this_txid, group_index).
control_asset: Option<AssetRef>Control asset reference. Only valid for issuances (when asset_id is None).
metadata: Option<Metadata>Metadata key-value pairs attached to the asset group.
inputs: Vec<AssetInput>Asset inputs consumed by this group.
outputs: Vec<AssetOutput>Asset outputs produced by this group.
Trait Implementations§
Source§impl Clone for AssetGroup
impl Clone for AssetGroup
Source§fn clone(&self) -> AssetGroup
fn clone(&self) -> AssetGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AssetGroup
impl RefUnwindSafe for AssetGroup
impl Send for AssetGroup
impl Sync for AssetGroup
impl Unpin for AssetGroup
impl UnsafeUnpin for AssetGroup
impl UnwindSafe for AssetGroup
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