[][src]Struct tmkms::config::KmsConfig

pub struct KmsConfig {
    pub chain: Vec<ChainConfig>,
    pub validator: Vec<ValidatorConfig>,
    pub providers: ProviderConfig,
}

KMS configuration (i.e. TOML file parsed with serde)

Fields

chain: Vec<ChainConfig>

Chains the KMS is providing key management service for

validator: Vec<ValidatorConfig>

Addresses of validator nodes

providers: ProviderConfig

Cryptographic signature provider configuration

Trait Implementations

impl Debug for KmsConfig[src]

impl Config for KmsConfig[src]

fn load_toml<T>(toml_string: T) -> Result<Self, Error<FrameworkErrorKind>> where
    T: AsRef<str>, 
[src]

Load the configuration from the given TOML string

fn load_toml_file<P>(path: &P) -> Result<Self, Error<FrameworkErrorKind>> where
    P: AsRef<CanonicalPath>, 
[src]

Load the global configuration from the TOML file at the given path. If an error occurs reading or parsing the file, print it out and exit. Read more

impl Configurable<KmsConfig> for KmsCommand[src]

fn config_path(&self) -> Option<PathBuf>[src]

Get the path to the configuration file, either from selected subcommand or the default

fn load_config_file<P>(&self, path: &P) -> Result<C, Error<FrameworkErrorKind>> where
    P: AsRef<CanonicalPath>, 
[src]

Load the configuration for this command

fn preprocess_config(&self, config: C) -> Result<C, Error<FrameworkErrorKind>>[src]

Process the configuration after it has been loaded, potentially modifying it or returning an error if options are incompatible Read more

impl<'de> Deserialize<'de> for KmsConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self