pub struct Exploit {
pub id: String,
pub protocol: String,
pub date: String,
pub loss_usd: u64,
pub chain: String,
pub invariant_ids: Vec<String>,
pub attack_summary: String,
pub tx_hash: String,
pub postmortem_url: String,
}Expand description
An historical exploit record.
Fields§
§id: StringUnique identifier (slug format).
protocol: StringProtocol name.
date: StringDate of exploit (YYYY-MM-DD).
loss_usd: u64Estimated loss in USD.
chain: StringChain affected.
invariant_ids: Vec<String>Invariants that would have detected this.
attack_summary: StringSummary of the attack.
tx_hash: StringTransaction hash or block number.
postmortem_url: StringLink to postmortem or analysis.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exploit
impl<'de> Deserialize<'de> for Exploit
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 Freeze for Exploit
impl RefUnwindSafe for Exploit
impl Send for Exploit
impl Sync for Exploit
impl Unpin for Exploit
impl UnsafeUnpin for Exploit
impl UnwindSafe for Exploit
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