pub struct Transaction {
pub version: u32,
pub inputs: Vec<TransactionInput>,
pub outputs: Vec<TransactionOutput>,
pub lock_time: u32,
}Fields§
§version: u32§inputs: Vec<TransactionInput>§outputs: Vec<TransactionOutput>§lock_time: u32Implementations§
Source§impl Transaction
impl Transaction
pub fn new( version: u32, inputs: Vec<TransactionInput>, outputs: Vec<TransactionOutput>, lock_time: u32, ) -> Transaction
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
Source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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 Transaction
Source§impl From<Transaction> for JsValue
impl From<Transaction> for JsValue
Source§fn from(value: Transaction) -> Self
fn from(value: Transaction) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Transaction
impl FromWasmAbi for Transaction
Source§impl IntoWasmAbi for Transaction
impl IntoWasmAbi for Transaction
Source§impl LongRefFromWasmAbi for Transaction
impl LongRefFromWasmAbi for Transaction
Source§type Abi = WasmPtr<WasmRefCell<Transaction>>
type Abi = WasmPtr<WasmRefCell<Transaction>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<Transaction>
type Anchor = RcRef<Transaction>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for Transaction
impl OptionFromWasmAbi for Transaction
Source§impl OptionIntoWasmAbi for Transaction
impl OptionIntoWasmAbi for Transaction
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
Source§impl RefFromWasmAbi for Transaction
impl RefFromWasmAbi for Transaction
Source§type Abi = WasmPtr<WasmRefCell<Transaction>>
type Abi = WasmPtr<WasmRefCell<Transaction>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<Transaction>
type Anchor = RcRef<Transaction>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for Transaction
impl RefMutFromWasmAbi for Transaction
Source§type Abi = WasmPtr<WasmRefCell<Transaction>>
type Abi = WasmPtr<WasmRefCell<Transaction>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<Transaction>
type Anchor = RcRefMut<Transaction>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl Serialize for Transaction
impl Serialize for Transaction
impl StructuralPartialEq for Transaction
impl SupportsConstructor for Transaction
impl SupportsInstanceProperty for Transaction
impl SupportsStaticProperty for Transaction
Source§impl TryFromJsValue for Transaction
impl TryFromJsValue for Transaction
Source§impl VectorFromWasmAbi for Transaction
impl VectorFromWasmAbi for Transaction
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Transaction]>
Source§impl VectorIntoWasmAbi for Transaction
impl VectorIntoWasmAbi for Transaction
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Transaction]>) -> Self::Abi
Source§impl WasmDescribeVector for Transaction
impl WasmDescribeVector for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.