pub enum IndexerTx {
Ungrouped(IndexerTxWithCell),
Grouped(IndexerTxWithCells),
}
Expand description
Indexer Transaction Object
Variants§
Ungrouped(IndexerTxWithCell)
§Ungrouped format represent as IndexerTxWithCell
§Fields
IndexerCellType
is equivalent to "input" | "output"
.
IndexerTxWithCell
is a JSON object with the following fields.
tx_hash
:H256
- transaction hashblock_number
:BlockNumber
- the number of the transaction committed in the blocktx_index
:Uint32
- the position index of the transaction committed in the blockio_index
:Uint32
- the position index of the cell in the transaction inputs or outputsio_type
:IndexerCellType
- io type
Grouped(IndexerTxWithCells)
§Grouped format represent as IndexerTxWithCells
§Fields
IndexerCellType
is equivalent to "input" | "output"
.
IndexerTxWithCells
is a JSON object with the following fields.
tx_hash
:H256
- transaction hashblock_number
:BlockNumber
- the number of the transaction committed in the blocktx_index
:Uint32
- the position index of the transaction committed in the blockcells
: Array <(IndexerCellType, Uint32)>
Implementations§
Trait Implementations§
Source§impl JsonSchema for IndexerTx
impl JsonSchema for IndexerTx
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for IndexerTx
impl RefUnwindSafe for IndexerTx
impl Send for IndexerTx
impl Sync for IndexerTx
impl Unpin for IndexerTx
impl UnwindSafe for IndexerTx
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