pub struct SpoolLoadedPayload {
pub spool_id: SpoolId,
pub tool: i64,
pub replaced: Option<SpoolId>,
pub took_pending: Vec<PendingTaken>,
pub cleared_marks: Vec<ClearedMark>,
pub actor: Actor,
pub reason: String,
}Expand description
A spool was loaded onto a tool, or confirmed as never having left it.
Fields§
§spool_id: SpoolIdThe spool loaded.
tool: i64The tool, in the printer’s own numbering.
replaced: Option<SpoolId>The spool the load swapped off the tool, when it was occupied.
took_pending: Vec<PendingTaken>The pending charges the load took, each also its own
filament_consumed event under its key.
cleared_marks: Vec<ClearedMark>Every mark the load cleared, on either spool.
actor: ActorWho loaded it.
reason: StringWhy.
Trait Implementations§
Source§impl Clone for SpoolLoadedPayload
impl Clone for SpoolLoadedPayload
Source§impl Debug for SpoolLoadedPayload
impl Debug for SpoolLoadedPayload
Source§impl<'de> Deserialize<'de> for SpoolLoadedPayload
impl<'de> Deserialize<'de> for SpoolLoadedPayload
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 EventPayload for SpoolLoadedPayload
impl EventPayload for SpoolLoadedPayload
Source§impl JsonSchema for SpoolLoadedPayload
impl JsonSchema for SpoolLoadedPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SpoolLoadedPayload
impl PartialEq for SpoolLoadedPayload
Source§impl Sample for SpoolLoadedPayload
impl Sample for SpoolLoadedPayload
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§impl Serialize for SpoolLoadedPayload
impl Serialize for SpoolLoadedPayload
impl StructuralPartialEq for SpoolLoadedPayload
Auto Trait Implementations§
impl Forget for SpoolLoadedPayload
impl Freeze for SpoolLoadedPayload
impl Move for SpoolLoadedPayload
impl RefUnwindSafe for SpoolLoadedPayload
impl Send for SpoolLoadedPayload
impl Sync for SpoolLoadedPayload
impl Unpin for SpoolLoadedPayload
impl UnsafeUnpin for SpoolLoadedPayload
impl UnwindSafe for SpoolLoadedPayload
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