[−][src]Struct tmkms::config::KmsConfig
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]
T: AsRef<str>,
Load the configuration from the given TOML string
fn load_toml_file<P>(path: &P) -> Result<Self, Error<FrameworkErrorKind>> where
P: AsRef<CanonicalPath>,
[src]
P: AsRef<CanonicalPath>,
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]
P: AsRef<CanonicalPath>,
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for KmsConfig
impl Unpin for KmsConfig
impl Sync for KmsConfig
impl UnwindSafe for KmsConfig
impl RefUnwindSafe for KmsConfig
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same<T> for T
type Output = T
Should always be Self