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§

source

fn get_txn_type<'a>() -> &'a str

Get the transaction type as a numeric string

Provided Methods§

source

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

source

fn get_sp_timestamps(&self) -> VdrResult<(Option<u64>, Option<u64>)>

Get the state proof timestamps for the request, if any

Object Safety§

This trait is not object safe.

Implementors§

source§

impl RequestType for AuthRuleOperation

source§

impl RequestType for GetAuthRuleOperation

source§

impl RequestType for AttribOperation

source§

impl RequestType for GetAttribOperation

source§

impl RequestType for AuthRulesOperation

source§

impl RequestType for DisableAllTxnAuthorAgreementsOperation

source§

impl RequestType for GetAcceptanceMechanismOperation

source§

impl RequestType for GetTxnAuthorAgreementOperation

source§

impl RequestType for SetAcceptanceMechanismOperation

source§

impl RequestType for TxnAuthorAgreementOperation

source§

impl RequestType for CredDefOperation

source§

impl RequestType for GetCredDefOperation

source§

impl RequestType for FlagOperation

source§

impl RequestType for GetFlagOperation

source§

impl RequestType for GetFrozenLedgersOperation

source§

impl RequestType for LedgersFreezeOperation

source§

impl RequestType for NodeOperation

source§

impl RequestType for GetNymOperation

source§

impl RequestType for NymOperation

source§

impl RequestType for PoolConfigOperation

source§

impl RequestType for PoolRestartOperation

source§

impl RequestType for PoolUpgradeOperation

source§

impl RequestType for GetRevRegDeltaOperation

source§

impl RequestType for GetRevRegOperation

source§

impl RequestType for RevRegEntryOperation

source§

impl RequestType for GetRevRegDefOperation

source§

impl RequestType for RevRegDefOperation

source§

impl RequestType for GetSchemaOperation

source§

impl RequestType for SchemaOperation

source§

impl RequestType for GetTxnOperation

source§

impl RequestType for GetValidatorInfoOperation