pub struct DecisionInput<'a> {
pub action: &'a PrintAction,
pub actor: &'a Actor,
pub requested_at: Timestamp,
pub print: Option<&'a PrintRecord>,
pub printer_state: Option<&'a PrinterState>,
pub bounds: &'a EffectiveBounds,
pub envelope: &'a SafetyEnvelope,
pub last_agent_action: Option<Timestamp>,
}Expand description
Everything one decision is taken from.
Fields§
§action: &'a PrintActionWhat is being asked for.
actor: &'a ActorWho is asking.
requested_at: TimestampWhen they asked.
print: Option<&'a PrintRecord>The print it is being asked against, when there is one.
printer_state: Option<&'a PrinterState>The state to judge this request from, when there is one to judge it from.
Absent means the state check does not apply: either no snapshot could be taken, or the request is a restoration, which is the closing half of a change this policy already accepted rather than a fresh request for a machine change — the state that justified the original check is by definition the state that has just ended. The bounds check applies to a restoration exactly as it does to the request that opened it.
bounds: &'a EffectiveBoundsThe bounds in force for this print.
envelope: &'a SafetyEnvelopeThe operator’s safety envelope.
last_agent_action: Option<Timestamp>When the agent last acted on this print, if it has.
Trait Implementations§
Source§impl<'a> Clone for DecisionInput<'a>
impl<'a> Clone for DecisionInput<'a>
Source§fn clone(&self) -> DecisionInput<'a>
fn clone(&self) -> DecisionInput<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more