pub struct Intervention {
pub action_id: ActionId,
pub adjustable: Adjustable,
pub applied_at: Timestamp,
pub applied_value: f64,
pub expires_at: Timestamp,
pub id: InterventionId,
pub outcome: InterventionOutcome,
pub print_id: PrintId,
pub prior_value: Option<f64>,
pub restored_at: Option<Timestamp>,
}Expand description
One adjustment made for a bounded time.
prior_value is read from the printer snapshot taken before the change,
and
is absent when the printer reported none — in which case expiry restores
nothing and the outcome says so rather than guessing a default.
Fields§
§action_id: ActionIdThe action that asked for it.
adjustable: AdjustableWhat it changed.
applied_at: TimestampWhen it was applied.
applied_value: f64What it was changed to.
expires_at: TimestampWhen it stops standing.
id: InterventionIdThis intervention’s identifier, minted by the store.
outcome: InterventionOutcomeWhat became of it.
print_id: PrintIdThe print it was made against.
prior_value: Option<f64>What the printer reported before the change, if it reported anything.
restored_at: Option<Timestamp>When the prior value was put back, if it was.
Trait Implementations§
Source§impl Clone for Intervention
impl Clone for Intervention
Source§impl Debug for Intervention
impl Debug for Intervention
Source§impl<'de> Deserialize<'de> for Intervention
impl<'de> Deserialize<'de> for Intervention
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
Source§impl PartialEq for Intervention
impl PartialEq for Intervention
Source§impl Serialize for Intervention
impl Serialize for Intervention
impl StructuralPartialEq for Intervention
Auto Trait Implementations§
impl Freeze for Intervention
impl RefUnwindSafe for Intervention
impl Send for Intervention
impl Sync for Intervention
impl Unpin for Intervention
impl UnsafeUnpin for Intervention
impl UnwindSafe for Intervention
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