pub enum Consensus {
Genesis(Genesis),
PoAConsensus(PoAConsensus),
Unknown,
}
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Consensus
impl<'de> Deserialize<'de> for Consensus
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<'de> InlineFragments<'de> for Consensus
impl<'de> InlineFragments<'de> for Consensus
source§fn deserialize_variant<D>(
typename: &str,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize_variant<D>(
typename: &str,
deserializer: D
) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Attempts to deserialize a variant with the given typename.
source§impl<'de> QueryFragment<'de> for Consensus
impl<'de> QueryFragment<'de> for Consensus
§type SchemaType = Consensus
type SchemaType = Consensus
The type in a schema that this
QueryFragment
representssource§fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::Variables>)
fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::Variables>)
Adds this fragment to the query being built by
builder