pub struct RiskProjection {
pub limit_id: ContractId,
pub limit_label: String,
pub current_usage: f64,
pub projected_usage: f64,
pub exceed_probability: f64,
pub time_until_limit_secs: Option<i64>,
}Expand description
A projection for a specific risk limit.
Fields§
§limit_id: ContractIdThe risk limit being projected.
limit_label: StringRisk limit label.
current_usage: f64Current usage (0.0-1.0 fraction of limit).
projected_usage: f64Projected usage at end of window.
exceed_probability: f64Probability of exceeding limit (0.0-1.0).
time_until_limit_secs: Option<i64>Estimated time until limit reached (seconds), if applicable.
Trait Implementations§
Source§impl Clone for RiskProjection
impl Clone for RiskProjection
Source§fn clone(&self) -> RiskProjection
fn clone(&self) -> RiskProjection
Returns a duplicate 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 RiskProjection
impl Debug for RiskProjection
Source§impl<'de> Deserialize<'de> for RiskProjection
impl<'de> Deserialize<'de> for RiskProjection
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 RiskProjection
impl RefUnwindSafe for RiskProjection
impl Send for RiskProjection
impl Sync for RiskProjection
impl Unpin for RiskProjection
impl UnsafeUnpin for RiskProjection
impl UnwindSafe for RiskProjection
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