Struct diem_config::config::KeyManagerConfig
source · pub struct KeyManagerConfig {
pub logger: LoggerConfig,
pub json_rpc_endpoint: String,
pub rotation_period_secs: u64,
pub secure_backend: SecureBackend,
pub sleep_period_secs: u64,
pub txn_expiration_secs: u64,
pub chain_id: ChainId,
}
Fields§
§logger: LoggerConfig
§json_rpc_endpoint: String
§rotation_period_secs: u64
§secure_backend: SecureBackend
§sleep_period_secs: u64
§txn_expiration_secs: u64
§chain_id: ChainId
Implementations§
source§impl KeyManagerConfig
impl KeyManagerConfig
sourcepub fn load<P: AsRef<Path>>(input_path: P) -> Result<Self, Error>
pub fn load<P: AsRef<Path>>(input_path: P) -> Result<Self, Error>
Reads the key manager config file from the given input_path. Paths used in the config are either absolute or relative to the config location
sourcepub fn save<P: AsRef<Path>>(&mut self, output_path: P) -> Result<(), Error>
pub fn save<P: AsRef<Path>>(&mut self, output_path: P) -> Result<(), Error>
Saves the key manager config file to the given output_path.
pub fn set_data_dir(&mut self, data_dir: PathBuf)
Trait Implementations§
source§impl Clone for KeyManagerConfig
impl Clone for KeyManagerConfig
source§fn clone(&self) -> KeyManagerConfig
fn clone(&self) -> KeyManagerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyManagerConfig
impl Debug for KeyManagerConfig
source§impl Default for KeyManagerConfig
impl Default for KeyManagerConfig
source§fn default() -> KeyManagerConfig
fn default() -> KeyManagerConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for KeyManagerConfigwhere
KeyManagerConfig: Default,
impl<'de> Deserialize<'de> for KeyManagerConfigwhere KeyManagerConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<KeyManagerConfig> for KeyManagerConfig
impl PartialEq<KeyManagerConfig> for KeyManagerConfig
source§fn eq(&self, other: &KeyManagerConfig) -> bool
fn eq(&self, other: &KeyManagerConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeyManagerConfig
impl Serialize for KeyManagerConfig
impl Eq for KeyManagerConfig
impl StructuralEq for KeyManagerConfig
impl StructuralPartialEq for KeyManagerConfig
Auto Trait Implementations§
impl RefUnwindSafe for KeyManagerConfig
impl Send for KeyManagerConfig
impl Sync for KeyManagerConfig
impl Unpin for KeyManagerConfig
impl UnwindSafe for KeyManagerConfig
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> PersistableConfig for Twhere
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.