Enum redgold_schema::structs::RatingType
source · #[repr(i32)]pub enum RatingType {
SecurityRating = 0,
DepositRating = 1,
}Variants§
SecurityRating = 0
Conventional rating associated with likelihood to commit double spend or malicious node behavior
DepositRating = 1
Rating associated with multi-party computation, should always be strictly speaking more risky than normal security
Implementations§
Trait Implementations§
source§impl Clone for RatingType
impl Clone for RatingType
source§fn clone(&self) -> RatingType
fn clone(&self) -> RatingType
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 RatingType
impl Debug for RatingType
source§impl Default for RatingType
impl Default for RatingType
source§fn default() -> RatingType
fn default() -> RatingType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RatingType
impl<'de> Deserialize<'de> for RatingType
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<RatingType> for i32
impl From<RatingType> for i32
source§fn from(value: RatingType) -> i32
fn from(value: RatingType) -> i32
Converts to this type from the input type.
source§impl FromStr for RatingType
impl FromStr for RatingType
source§impl Hash for RatingType
impl Hash for RatingType
source§impl IntoEnumIterator for RatingType
impl IntoEnumIterator for RatingType
type Iterator = RatingTypeIter
fn iter() -> RatingTypeIter ⓘ
source§impl Ord for RatingType
impl Ord for RatingType
source§fn cmp(&self, other: &RatingType) -> Ordering
fn cmp(&self, other: &RatingType) -> 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 RatingType
impl PartialEq for RatingType
source§fn eq(&self, other: &RatingType) -> bool
fn eq(&self, other: &RatingType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for RatingType
impl PartialOrd for RatingType
source§fn partial_cmp(&self, other: &RatingType) -> Option<Ordering>
fn partial_cmp(&self, other: &RatingType) -> 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 RatingType
impl Serialize for RatingType
source§impl TryFrom<&str> for RatingType
impl TryFrom<&str> for RatingType
impl Copy for RatingType
impl Eq for RatingType
impl StructuralEq for RatingType
impl StructuralPartialEq for RatingType
Auto Trait Implementations§
impl RefUnwindSafe for RatingType
impl Send for RatingType
impl Sync for RatingType
impl Unpin for RatingType
impl UnwindSafe for RatingType
Blanket Implementations§
source§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