pub enum SpoolChange {
Load {
tool: i64,
},
Unload,
SetRemaining {
remaining_g: f64,
},
MarkUnverified {
reason: UnverifiedReason,
},
ClearMarks {
kinds: Vec<UnverifiedReasonKind>,
},
Retire,
}Expand description
What one SpoolMutation changes.
Variants§
Load
Put the spool on a tool.
Unload
Take the spool off its tool.
SetRemaining
Set the spool’s remaining figure, which clears every mark: the spool
reads verified after it.
MarkUnverified
Add one mark, by SpoolTrust::marked, at the mutation’s instant. A
reason the spool already holds adds nothing and writes no second
spool_unverified event.
Fields
§
reason: UnverifiedReasonWhy the figure is in doubt.
ClearMarks
Remove every mark of these kinds, by SpoolTrust::cleared. The
domain chooses the kinds through
marks_cleared_by, and the marks
cleared are named in the command’s own event, so this change writes no
event of its own: the mutation’s event is not written.
Fields
§
kinds: Vec<UnverifiedReasonKind>The kinds of mark removed.
Retire
Retire the spool.
Trait Implementations§
Source§impl Clone for SpoolChange
impl Clone for SpoolChange
Source§impl Debug for SpoolChange
impl Debug for SpoolChange
Source§impl PartialEq for SpoolChange
impl PartialEq for SpoolChange
impl StructuralPartialEq for SpoolChange
Auto Trait Implementations§
impl Freeze for SpoolChange
impl RefUnwindSafe for SpoolChange
impl Send for SpoolChange
impl Sync for SpoolChange
impl Unpin for SpoolChange
impl UnsafeUnpin for SpoolChange
impl UnwindSafe for SpoolChange
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