pub struct LossEvent {
pub event_id: u64,
pub stock_id: u64,
pub cause_hash: u64,
pub timestamp_epoch: u32,
pub extent_loss_pct: f32,
pub irreversibility_override: Option<IrreversibilityClass>,
}Expand description
An acute loss or destruction event (AC-AX-6).
Fields§
§event_id: u64Identity of the event.
stock_id: u64Stock the event applies to.
cause_hash: u64q_hash of the cause IRI (e.g. event:bushfire).
timestamp_epoch: u32Event time (seconds since epoch).
extent_loss_pct: f32Extent of destruction in percentage [0.0, 100.0].
irreversibility_override: Option<IrreversibilityClass>Overrides the stock’s baseline irreversibility when the event itself changes the recovery class (e.g. topsoil sterilisation).
Trait Implementations§
impl Copy for LossEvent
impl StructuralPartialEq for LossEvent
Auto Trait Implementations§
impl Freeze for LossEvent
impl RefUnwindSafe for LossEvent
impl Send for LossEvent
impl Sync for LossEvent
impl Unpin for LossEvent
impl UnsafeUnpin for LossEvent
impl UnwindSafe for LossEvent
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more