Trait indy_vdr::ledger::requests::RequestType
source · pub trait RequestType: Serialize {
// Required method
fn get_txn_type<'a>() -> &'a str;
// Provided methods
fn get_sp_key(
&self,
_protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>> { ... }
fn get_sp_timestamps(&self) -> VdrResult<(Option<u64>, Option<u64>)> { ... }
}
Expand description
Base trait for all ledger transaction request operations
Required Methods§
sourcefn get_txn_type<'a>() -> &'a str
fn get_txn_type<'a>() -> &'a str
Get the transaction type as a numeric string
Provided Methods§
sourcefn get_sp_key(
&self,
_protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
fn get_sp_key( &self, _protocol_version: ProtocolVersion ) -> VdrResult<Option<Vec<u8>>>
Get a state proof key for the transaction, if any can be derived
Object Safety§
This trait is not object safe.