pub struct Transaction {Show 22 fields
pub gas_limit: Option<U64>,
pub gas_price: Option<U64>,
pub id: TransactionId,
pub tx_pointer: Option<TxPointer>,
pub input_asset_ids: Option<Vec<AssetId>>,
pub input_contracts: Option<Vec<ContractIdFragment>>,
pub inputs: Option<Vec<Input>>,
pub is_script: bool,
pub is_create: bool,
pub is_mint: bool,
pub outputs: Vec<Output>,
pub maturity: Option<U64>,
pub receipts_root: Option<Bytes32>,
pub status: Option<TransactionStatus>,
pub witnesses: Option<Vec<HexString>>,
pub receipts: Option<Vec<Receipt>>,
pub script: Option<HexString>,
pub script_data: Option<HexString>,
pub salt: Option<Salt>,
pub storage_slots: Option<Vec<HexString>>,
pub bytecode_witness_index: Option<i32>,
pub bytecode_length: Option<U64>,
}
Fields§
§gas_limit: Option<U64>
§gas_price: Option<U64>
§id: TransactionId
§tx_pointer: Option<TxPointer>
§input_asset_ids: Option<Vec<AssetId>>
§input_contracts: Option<Vec<ContractIdFragment>>
§inputs: Option<Vec<Input>>
§is_script: bool
§is_create: bool
§is_mint: bool
§outputs: Vec<Output>
§maturity: Option<U64>
§receipts_root: Option<Bytes32>
§status: Option<TransactionStatus>
§witnesses: Option<Vec<HexString>>
§receipts: Option<Vec<Receipt>>
§script: Option<HexString>
§script_data: Option<HexString>
§salt: Option<Salt>
§storage_slots: Option<Vec<HexString>>
§bytecode_witness_index: Option<i32>
§bytecode_length: Option<U64>
Trait Implementations§
Source§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
Source§impl<'de> QueryFragment<'de> for Transaction
impl<'de> QueryFragment<'de> for Transaction
Source§type SchemaType = Transaction
type SchemaType = Transaction
The type in a schema that this
QueryFragment
representsSource§fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::Variables>)
fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::Variables>)
Adds this fragment to the query being built by
builder
Source§impl TryFrom<Transaction> for Transaction
impl TryFrom<Transaction> for Transaction
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more