Struct flow_sdk::entities::Chunk[][src]

pub struct Chunk {
    pub start_state: Box<[u8]>,
    pub event_collection: Box<[u8]>,
    pub block_id: Box<[u8]>,
    pub total_computation_used: u64,
    pub number_of_transactions: u64,
    pub index: u64,
    pub end_state: Box<[u8]>,
}
Expand description

Chunk describes execution information for given collection in a block.

Fields

start_state: Box<[u8]>

State commitment at start of the chunk.

event_collection: Box<[u8]>

Hash of events emitted by transactions in this chunk.

block_id: Box<[u8]>

Block id of the execution result this chunk belongs to.

total_computation_used: u64

Total amount of computation used by running all Transactions in this chunk.

number_of_transactions: u64

Number of transactions inside the chunk.

index: u64

Index of chunk inside a block (zero-based)

end_state: Box<[u8]>

State commitment after executing chunk

Trait Implementations

If this is a message, call merge() on all fields, if this is repeated, extend this with the elements of other. for all other types simply overwrite this with other, which is the default. Read more

How big the tag message gets. This is an unsigned varint. Read more

Decodes a field with the given tag. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more