pub struct DefiRiskFactor {
pub name: String,
pub description: String,
pub severity: u8,
}Expand description
A DeFi-specific risk factor.
Fields§
§name: StringRisk name.
description: StringDescription.
severity: u8Severity (1-10).
Trait Implementations§
Source§impl Clone for DefiRiskFactor
impl Clone for DefiRiskFactor
Source§impl Debug for DefiRiskFactor
impl Debug for DefiRiskFactor
Source§impl<'de> Deserialize<'de> for DefiRiskFactor
impl<'de> Deserialize<'de> for DefiRiskFactor
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
Auto Trait Implementations§
impl Forget for DefiRiskFactor
impl Freeze for DefiRiskFactor
impl RefUnwindSafe for DefiRiskFactor
impl Send for DefiRiskFactor
impl Sync for DefiRiskFactor
impl Unpin for DefiRiskFactor
impl UnsafeUnpin for DefiRiskFactor
impl UnwindSafe for DefiRiskFactor
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