pub struct StatusAnswer {
pub print: PrintRecord,
pub printer: Option<PrinterSnapshot>,
pub job: Option<JobSnapshot>,
pub session: Option<SupervisionSession>,
pub interventions: Vec<Intervention>,
pub detector: DetectorHealth,
}Expand description
What a status read answers.
Fields§
§print: PrintRecordThe print.
printer: Option<PrinterSnapshot>The printer, when a snapshot could be taken.
job: Option<JobSnapshot>The job, when a snapshot could be taken.
session: Option<SupervisionSession>The supervision session watching it, when one is.
interventions: Vec<Intervention>The bounded interventions still in force.
detector: DetectorHealthThe failure detector’s health, and since when it has been so.
Trait Implementations§
Source§impl Clone for StatusAnswer
impl Clone for StatusAnswer
Source§impl Debug for StatusAnswer
impl Debug for StatusAnswer
Source§impl JsonSchema for StatusAnswer
impl JsonSchema for StatusAnswer
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 StatusAnswer
impl PartialEq for StatusAnswer
Source§impl Serialize for StatusAnswer
impl Serialize for StatusAnswer
impl StructuralPartialEq for StatusAnswer
Auto Trait Implementations§
impl Freeze for StatusAnswer
impl RefUnwindSafe for StatusAnswer
impl Send for StatusAnswer
impl Sync for StatusAnswer
impl Unpin for StatusAnswer
impl UnsafeUnpin for StatusAnswer
impl UnwindSafe for StatusAnswer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more