Enum tendermint_proto::serializers::evidence::EvidenceVariant [−][src]
pub enum EvidenceVariant { None, DuplicateVoteEvidence(DuplicateVoteEvidence), LightClientAttackEvidence(LightClientAttackEvidence), }
Expand description
EvidenceVariant helper struct for evidence serialization This is a workaround until we figure a better way of JSON serializing evidence. It is a modified copy of the crate::tendermint::types::evidence::Sum struct.
Variants
Provided for when the evidence struct’s optional sum
field is None
.
DuplicateVoteEvidence(DuplicateVoteEvidence)
LightClientAttackEvidence(LightClientAttackEvidence)
Trait Implementations
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
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EvidenceVariant
impl Send for EvidenceVariant
impl Sync for EvidenceVariant
impl Unpin for EvidenceVariant
impl UnwindSafe for EvidenceVariant
Blanket Implementations
Mutably borrows from an owned value. Read more