Struct diem_config::config::IdentityFromConfig
source · pub struct IdentityFromConfig {
pub key: ConfigKey<PrivateKey>,
pub peer_id: PeerId,
}
Expand description
The identity is stored within the config.
Fields§
§key: ConfigKey<PrivateKey>
§peer_id: PeerId
Trait Implementations§
source§impl Clone for IdentityFromConfig
impl Clone for IdentityFromConfig
source§fn clone(&self) -> IdentityFromConfig
fn clone(&self) -> IdentityFromConfig
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 IdentityFromConfig
impl Debug for IdentityFromConfig
source§impl<'de> Deserialize<'de> for IdentityFromConfig
impl<'de> Deserialize<'de> for IdentityFromConfig
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<IdentityFromConfig> for IdentityFromConfig
impl PartialEq<IdentityFromConfig> for IdentityFromConfig
source§fn eq(&self, other: &IdentityFromConfig) -> bool
fn eq(&self, other: &IdentityFromConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for IdentityFromConfig
impl Serialize for IdentityFromConfig
impl StructuralPartialEq for IdentityFromConfig
Auto Trait Implementations§
impl RefUnwindSafe for IdentityFromConfig
impl Send for IdentityFromConfig
impl Sync for IdentityFromConfig
impl Unpin for IdentityFromConfig
impl UnwindSafe for IdentityFromConfig
Blanket Implementations§
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.