pub struct PrintsAnswer {
pub active: Option<PrintId>,
pub prints: Vec<PrintRecord>,
}Expand description
What the prints read answers: every print, and the one the printer is running.
An open print’s recorded state is the state it was opened in, which is
printing whether or not the machine is paused now; what the machine is
doing is the status read’s answer.
Fields§
§active: Option<PrintId>The print the printer’s current job belongs to, present exactly when the printer reports a job it is printing or has paused. Absent when the printer could not be read.
prints: Vec<PrintRecord>Every print this server holds, ended or not, most recently opened first.
Trait Implementations§
Source§impl Clone for PrintsAnswer
impl Clone for PrintsAnswer
Source§impl Debug for PrintsAnswer
impl Debug for PrintsAnswer
Source§impl<'de> Deserialize<'de> for PrintsAnswer
impl<'de> Deserialize<'de> for PrintsAnswer
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 PrintsAnswer
impl PartialEq for PrintsAnswer
Source§impl Serialize for PrintsAnswer
impl Serialize for PrintsAnswer
impl StructuralPartialEq for PrintsAnswer
Auto Trait Implementations§
impl Freeze for PrintsAnswer
impl RefUnwindSafe for PrintsAnswer
impl Send for PrintsAnswer
impl Sync for PrintsAnswer
impl Unpin for PrintsAnswer
impl UnsafeUnpin for PrintsAnswer
impl UnwindSafe for PrintsAnswer
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