Enum osmosis_std::types::tendermint::abci::EvidenceType
source · #[repr(i32)]pub enum EvidenceType {
Unknown = 0,
DuplicateVote = 1,
LightClientAttack = 2,
}Variants§
Implementations§
source§impl EvidenceType
impl EvidenceType
source§impl EvidenceType
impl EvidenceType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for EvidenceType
impl Clone for EvidenceType
source§fn clone(&self) -> EvidenceType
fn clone(&self) -> EvidenceType
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 EvidenceType
impl Debug for EvidenceType
source§impl Default for EvidenceType
impl Default for EvidenceType
source§fn default() -> EvidenceType
fn default() -> EvidenceType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EvidenceType
impl<'de> Deserialize<'de> for EvidenceType
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 From<EvidenceType> for i32
impl From<EvidenceType> for i32
source§fn from(value: EvidenceType) -> i32
fn from(value: EvidenceType) -> i32
Converts to this type from the input type.
source§impl Hash for EvidenceType
impl Hash for EvidenceType
source§impl JsonSchema for EvidenceType
impl JsonSchema for EvidenceType
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl Ord for EvidenceType
impl Ord for EvidenceType
source§fn cmp(&self, other: &EvidenceType) -> Ordering
fn cmp(&self, other: &EvidenceType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EvidenceType
impl PartialEq for EvidenceType
source§fn eq(&self, other: &EvidenceType) -> bool
fn eq(&self, other: &EvidenceType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for EvidenceType
impl PartialOrd for EvidenceType
source§fn partial_cmp(&self, other: &EvidenceType) -> Option<Ordering>
fn partial_cmp(&self, other: &EvidenceType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for EvidenceType
impl Serialize for EvidenceType
impl Copy for EvidenceType
impl Eq for EvidenceType
impl StructuralEq for EvidenceType
impl StructuralPartialEq for EvidenceType
Auto Trait Implementations§
impl RefUnwindSafe for EvidenceType
impl Send for EvidenceType
impl Sync for EvidenceType
impl Unpin for EvidenceType
impl UnwindSafe for EvidenceType
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more