pub struct PartiallySignedTransaction {
pub global: Global,
pub inputs: Vec<Input>,
pub outputs: Vec<Output>,
}Expand description
A Partially Signed Transaction.
Fields§
§global: GlobalThe key-value pairs for all global data.
inputs: Vec<Input>The corresponding key-value map for each input in the unsigned transaction.
outputs: Vec<Output>The corresponding key-value map for each output in the unsigned transaction.
Implementations§
Source§impl PartiallySignedTransaction
impl PartiallySignedTransaction
Sourcepub fn from_unsigned_tx(tx: Transaction) -> Result<Self, Error>
pub fn from_unsigned_tx(tx: Transaction) -> Result<Self, Error>
Create a PartiallySignedTransaction from an unsigned transaction, error if not unsigned
Sourcepub fn extract_tx(self) -> Transaction
pub fn extract_tx(self) -> Transaction
Extract the Transaction from a PartiallySignedTransaction by filling in the available signature information in place.
Trait Implementations§
Source§impl Clone for PartiallySignedTransaction
impl Clone for PartiallySignedTransaction
Source§fn clone(&self) -> PartiallySignedTransaction
fn clone(&self) -> PartiallySignedTransaction
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 PartiallySignedTransaction
impl Debug for PartiallySignedTransaction
Source§impl PartialEq for PartiallySignedTransaction
impl PartialEq for PartiallySignedTransaction
Source§fn eq(&self, other: &PartiallySignedTransaction) -> bool
fn eq(&self, other: &PartiallySignedTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PartiallySignedTransaction
Auto Trait Implementations§
impl Freeze for PartiallySignedTransaction
impl RefUnwindSafe for PartiallySignedTransaction
impl Send for PartiallySignedTransaction
impl Sync for PartiallySignedTransaction
impl Unpin for PartiallySignedTransaction
impl UnsafeUnpin for PartiallySignedTransaction
impl UnwindSafe for PartiallySignedTransaction
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