pub struct Detection {
pub warning: bool,
pub paused_the_print: bool,
pub provider_printer_id: i64,
}Expand description
What a provider’s failure detector did about a print, when an alert is one of its detections.
Named for what it is rather than for the provider, like ProviderPrint:
whether the detector only warned, whether it paused the print itself, and
the provider’s own identifier for the printer, which is what telling it the
detection was handled is addressed to.
Fields§
§warning: boolWhether the detector called it a warning rather than a failure.
paused_the_print: boolWhether the detector paused the print itself before alerting.
provider_printer_id: i64The provider’s own identifier for the printer the detection is about.
Trait Implementations§
impl Copy for Detection
Source§impl<'de> Deserialize<'de> for Detection
impl<'de> Deserialize<'de> for Detection
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 Detection
Source§impl JsonSchema for Detection
impl JsonSchema for Detection
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 moreimpl StructuralPartialEq for Detection
Auto Trait Implementations§
impl Freeze for Detection
impl RefUnwindSafe for Detection
impl Send for Detection
impl Sync for Detection
impl Unpin for Detection
impl UnsafeUnpin for Detection
impl UnwindSafe for Detection
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