Struct diem_sdk::types::on_chain_config::ConsensusConfigV1
pub struct ConsensusConfigV1 {
pub two_chain: bool,
}
Fields§
§two_chain: bool
Trait Implementations§
§impl Clone for ConsensusConfigV1
impl Clone for ConsensusConfigV1
§fn clone(&self) -> ConsensusConfigV1
fn clone(&self) -> ConsensusConfigV1
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 more§impl Debug for ConsensusConfigV1
impl Debug for ConsensusConfigV1
§impl Default for ConsensusConfigV1
impl Default for ConsensusConfigV1
§fn default() -> ConsensusConfigV1
fn default() -> ConsensusConfigV1
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ConsensusConfigV1
impl<'de> Deserialize<'de> for ConsensusConfigV1
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ConsensusConfigV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ConsensusConfigV1, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<ConsensusConfigV1> for ConsensusConfigV1
impl PartialEq<ConsensusConfigV1> for ConsensusConfigV1
§fn eq(&self, other: &ConsensusConfigV1) -> bool
fn eq(&self, other: &ConsensusConfigV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for ConsensusConfigV1
impl Serialize for ConsensusConfigV1
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ConsensusConfigV1
Auto Trait Implementations§
impl RefUnwindSafe for ConsensusConfigV1
impl Send for ConsensusConfigV1
impl Sync for ConsensusConfigV1
impl Unpin for ConsensusConfigV1
impl UnwindSafe for ConsensusConfigV1
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>
§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.