Trait indy_vdr::ledger::requests::RequestType[][src]

pub trait RequestType: Serialize {
    fn get_txn_type<'a>() -> &'a str;

    fn get_sp_key(
        &self,
        _protocol_version: ProtocolVersion
    ) -> VdrResult<Option<Vec<u8>>> { ... }
fn get_sp_timestamps(&self) -> VdrResult<(Option<u64>, Option<u64>)> { ... } }

Base trait for all ledger transaction request operations

Required methods

fn get_txn_type<'a>() -> &'a str[src]

Get the transaction type as a numeric string

Loading content...

Provided methods

fn get_sp_key(
    &self,
    _protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

Get a state proof key for the transaction, if any can be derived

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

Get the state proof timestamps for the request, if any

Loading content...

Implementors

impl RequestType for AuthRuleOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetAuthRuleOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    _protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

impl RequestType for AttribOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetAttribOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

impl RequestType for AuthRulesOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for DisableAllTxnAuthorAgreementsOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetAcceptanceMechanismOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    _protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

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

impl RequestType for GetTxnAuthorAgreementOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    _protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

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

impl RequestType for SetAcceptanceMechanismOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for TxnAuthorAgreementOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for CredDefOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetCredDefOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

impl RequestType for NodeOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetNymOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    _protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

impl RequestType for NymOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for PoolConfigOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for PoolRestartOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for PoolUpgradeOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetRevRegDeltaOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

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

impl RequestType for GetRevRegOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

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

impl RequestType for RevRegEntryOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetRevRegDefOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    _protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

impl RequestType for RevRegDefOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetSchemaOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

impl RequestType for SchemaOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

impl RequestType for GetTxnOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

fn get_sp_key(
    &self,
    _protocol_version: ProtocolVersion
) -> VdrResult<Option<Vec<u8>>>
[src]

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

impl RequestType for GetValidatorInfoOperation[src]

fn get_txn_type<'a>() -> &'a str[src]

Loading content...