pub struct PrevInputAsset {
pub anchor_point: OutPoint,
pub asset_id: AssetID,
pub script_key: Vec<u8>,
pub amount: u64,
}Expand description
Represents a previous input asset.
Fields§
§anchor_point: OutPointThe previous input’s anchor point (txid:vout).
asset_id: AssetIDThe asset ID of the asset that was spent as an input.
script_key: Vec<u8>The script key of the asset that was spent as an input.
amount: u64The amount of the asset that was spent as an input.
Trait Implementations§
Source§impl Clone for PrevInputAsset
impl Clone for PrevInputAsset
Source§fn clone(&self) -> PrevInputAsset
fn clone(&self) -> PrevInputAsset
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 moreSource§impl Debug for PrevInputAsset
impl Debug for PrevInputAsset
Source§impl<'de> Deserialize<'de> for PrevInputAsset
impl<'de> Deserialize<'de> for PrevInputAsset
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
impl Eq for PrevInputAsset
Source§impl Hash for PrevInputAsset
impl Hash for PrevInputAsset
Source§impl PartialEq for PrevInputAsset
impl PartialEq for PrevInputAsset
Source§fn eq(&self, other: &PrevInputAsset) -> bool
fn eq(&self, other: &PrevInputAsset) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrevInputAsset
impl Serialize for PrevInputAsset
impl StructuralPartialEq for PrevInputAsset
Auto Trait Implementations§
impl Freeze for PrevInputAsset
impl RefUnwindSafe for PrevInputAsset
impl Send for PrevInputAsset
impl Sync for PrevInputAsset
impl Unpin for PrevInputAsset
impl UnsafeUnpin for PrevInputAsset
impl UnwindSafe for PrevInputAsset
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