pub struct Job {
pub id: JobId,
pub at: Millis,
pub ast: Value,
pub text: String,
pub bytes: Bytes,
}Expand description
A completed print job.
The ast is device-specific JSON (the ESC/POS AST for receipt printers), so the core does
not depend on any command set. On the wire this is the REST job shape
{ id, at, ast, text, bytesHex }.
Fields§
§id: JobIdJob ID, unique per device.
at: MillisWhen the job closed.
ast: ValueThe parsed command AST.
text: StringPlain-text rendering, for assertions.
bytes: BytesThe raw bytes of the job.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 StructuralPartialEq for Job
Auto Trait Implementations§
impl !Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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