indy-vdr 0.3.0

A library for interacting with Hyperledger Indy Node, a distributed ledger for self-sovereign identity (https://www.hyperledger.org/use/hyperledger-indy).
Documentation
use super::constants::GET_VALIDATOR_INFO;
use super::RequestType;

#[derive(Serialize, PartialEq, Debug)]
pub struct GetValidatorInfoOperation {
    #[serde(rename = "type")]
    pub _type: String,
}

impl GetValidatorInfoOperation {
    pub fn new() -> GetValidatorInfoOperation {
        GetValidatorInfoOperation {
            _type: Self::get_txn_type().to_string(),
        }
    }
}

impl RequestType for GetValidatorInfoOperation {
    fn get_txn_type<'a>() -> &'a str {
        GET_VALIDATOR_INFO
    }
}