Struct indy_vdr::pool::PreparedRequest[][src]

pub struct PreparedRequest {
    pub protocol_version: ProtocolVersion,
    pub txn_type: String,
    pub req_id: String,
    pub req_json: SJsonValue,
    pub method: RequestMethod,
}
Expand description

A ledger transaction request which has been prepared for dispatch

Fields

protocol_version: ProtocolVersion

The protocol version used in pool communication

txn_type: String

The numeric transaction type

req_id: String

The numeric transaction request ID

req_json: SJsonValue

The request body as a serde_json::Value instance

method: RequestMethod

Determine the request handler to use

Implementations

Create a new PreparedRequest

Generate the normalized representation of a transaction for signing the request

Assign the endorser property of the prepared request

Assign the signature property of the prepared request

Add a signature to the prepared request

Decorate the prepared request with the transaction author agreement acceptance

Construct a prepared request from user-provided JSON

Construct a prepared request from user-provided JSON

Trait Implementations

Formats the value using the given formatter. 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.

Performs the conversion.

Should always be Self

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.