pub struct AppliedRecord {
pub applied_at_ms: i64,
pub target_ref: String,
pub rollbackable: bool,
pub created_hashes: Vec<String>,
pub inverse_cal: Option<String>,
pub metric: Option<MetricSnapshot>,
}Expand description
Record of an applied recommendation: how to undo it and what to re-measure.
Fields§
§applied_at_ms: i64§target_ref: String§rollbackable: bool§created_hashes: Vec<String>Grain hashes created by the apply, retracted on rollback (ADD inverse).
inverse_cal: Option<String>CAL that undoes a change with no grain to retract.
created_hashes is the inverse of an ADD: rollback retracts what the
apply created. A DEFINE QUERY / DEFINE TEMPLATE creates no grain —
it replaces a qry:/tpl: registry row — so retracting nothing would
let a rollback report success while the new definition stayed live.
This holds the statement that restores the previous definition (or
DROP when there was none), captured at apply time from the state
being replaced.
metric: Option<MetricSnapshot>Trait Implementations§
Source§impl Clone for AppliedRecord
impl Clone for AppliedRecord
Source§impl Debug for AppliedRecord
impl Debug for AppliedRecord
Source§impl<'de> Deserialize<'de> for AppliedRecord
impl<'de> Deserialize<'de> for AppliedRecord
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 AppliedRecord
impl RefUnwindSafe for AppliedRecord
impl Send for AppliedRecord
impl Sync for AppliedRecord
impl Unpin for AppliedRecord
impl UnsafeUnpin for AppliedRecord
impl UnwindSafe for AppliedRecord
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