pub struct PrinterResetPayload {
pub during_print: Option<PrintId>,
pub detail: String,
}Expand description
The printer reset: its firmware restarted, and whatever it held is gone.
Recorded on each reset the printer pushed, one while idle included, which
changes nothing a read of its state reports. The printer’s rather than any
print’s, so it is written with no print; during_print names the print it
happened during, when one was running.
Fields§
§during_print: Option<PrintId>The print that was running when it reset, null when none was.
detail: StringWhat the watch knew of it, in words.
Trait Implementations§
Source§impl Clone for PrinterResetPayload
impl Clone for PrinterResetPayload
Source§impl Debug for PrinterResetPayload
impl Debug for PrinterResetPayload
Source§impl<'de> Deserialize<'de> for PrinterResetPayload
impl<'de> Deserialize<'de> for PrinterResetPayload
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
impl Eq for PrinterResetPayload
Source§impl EventPayload for PrinterResetPayload
impl EventPayload for PrinterResetPayload
Source§impl JsonSchema for PrinterResetPayload
impl JsonSchema for PrinterResetPayload
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 PrinterResetPayload
impl PartialEq for PrinterResetPayload
Source§impl Sample for PrinterResetPayload
impl Sample for PrinterResetPayload
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 PrinterResetPayload
impl Serialize for PrinterResetPayload
impl StructuralPartialEq for PrinterResetPayload
Auto Trait Implementations§
impl Forget for PrinterResetPayload
impl Freeze for PrinterResetPayload
impl Move for PrinterResetPayload
impl RefUnwindSafe for PrinterResetPayload
impl Send for PrinterResetPayload
impl Sync for PrinterResetPayload
impl Unpin for PrinterResetPayload
impl UnsafeUnpin for PrinterResetPayload
impl UnwindSafe for PrinterResetPayload
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