pub struct ActionRecord {
pub decision: PolicyDecision,
pub executed_at: Option<Timestamp>,
pub id: ActionId,
pub outcome: Option<ExecutionOutcome>,
pub print_id: PrintId,
pub request: ActionRequest,
}Expand description
One request, the decision taken on it, and what became of it.
executed_at and outcome are both optional and are absent together: a
record is written when the decision is taken, which is before — and, for a
rejected request, instead of — anything reaching the printer.
Fields§
§decision: PolicyDecisionThe decision policy took on it.
executed_at: Option<Timestamp>When it reached the printer, if it did.
id: ActionIdThis record’s identifier, minted by the store.
outcome: Option<ExecutionOutcome>What the printer made of it, if it reached the printer.
print_id: PrintIdThe print this request was made against.
request: ActionRequestThe request itself.
Trait Implementations§
Source§impl Clone for ActionRecord
impl Clone for ActionRecord
Source§impl Debug for ActionRecord
impl Debug for ActionRecord
Source§impl<'de> Deserialize<'de> for ActionRecord
impl<'de> Deserialize<'de> for ActionRecord
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 ActionRecord
impl PartialEq for ActionRecord
Source§impl Serialize for ActionRecord
impl Serialize for ActionRecord
impl StructuralPartialEq for ActionRecord
Auto Trait Implementations§
impl Freeze for ActionRecord
impl RefUnwindSafe for ActionRecord
impl Send for ActionRecord
impl Sync for ActionRecord
impl Unpin for ActionRecord
impl UnsafeUnpin for ActionRecord
impl UnwindSafe for ActionRecord
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