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
pub fn new(
protocol_version: ProtocolVersion,
txn_type: String,
req_id: String,
req_json: SJsonValue,
method: Option<RequestMethod>
) -> Self
pub fn new(
protocol_version: ProtocolVersion,
txn_type: String,
req_id: String,
req_json: SJsonValue,
method: Option<RequestMethod>
) -> Self
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
pub fn from_request_json_ext(
req_json: SJsonValue,
auto_pop: bool,
method: Option<RequestMethod>
) -> VdrResult<PreparedRequest>
pub fn from_request_json_ext(
req_json: SJsonValue,
auto_pop: bool,
method: Option<RequestMethod>
) -> VdrResult<PreparedRequest>
Construct a prepared request from user-provided JSON
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PreparedRequest
impl Send for PreparedRequest
impl Sync for PreparedRequest
impl Unpin for PreparedRequest
impl !UnwindSafe for PreparedRequest