pub struct CostRead {
pub field: String,
pub max_increase_ratio: f64,
pub baseline: Option<f64>,
pub current: Option<f64>,
pub status: String,
}Expand description
What a checkpoint read of the policy’s cost bound, beside the quality
verdict. status is within, breached, or not_measurable (the
field was absent or malformed on either run — then baseline/current
carry whichever side did measure, or nothing). Present on a record only
when the policy set a bound.
Fields§
§field: String§max_increase_ratio: f64§baseline: Option<f64>§current: Option<f64>§status: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CostRead
impl<'de> Deserialize<'de> for CostRead
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
impl StructuralPartialEq for CostRead
Auto Trait Implementations§
impl Freeze for CostRead
impl RefUnwindSafe for CostRead
impl Send for CostRead
impl Sync for CostRead
impl Unpin for CostRead
impl UnsafeUnpin for CostRead
impl UnwindSafe for CostRead
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