pub struct VtxoInput { /* private fields */ }Expand description
A VTXO to be spent into a pre-confirmed VTXO.
Implementations§
Source§impl VtxoInput
impl VtxoInput
pub fn new( vtxo_spend_script: ScriptBuf, locktime: Option<LockTime>, control_block: ControlBlock, tapscripts: Vec<ScriptBuf>, script_pubkey: ScriptBuf, amount: Amount, outpoint: OutPoint, assets: Vec<Asset>, ) -> Self
pub fn outpoint(&self) -> OutPoint
pub fn spend_info(&self) -> (&ScriptBuf, &ControlBlock)
pub fn script_pubkey(&self) -> ScriptBuf
pub fn amount(&self) -> Amount
pub fn assets(&self) -> &[Asset]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VtxoInput
impl RefUnwindSafe for VtxoInput
impl Send for VtxoInput
impl Sync for VtxoInput
impl Unpin for VtxoInput
impl UnsafeUnpin for VtxoInput
impl UnwindSafe for VtxoInput
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