Struct print_nanny_client::models::printer_event::PrinterEvent [−][src]
pub struct PrinterEvent {Show 16 fields
pub id: i32,
pub ts: Option<f32>,
pub event_source: Option<Box<EventSourceEnum>>,
pub event_type: Option<Box<EventType0c4Enum>>,
pub octoprint_environment: Box<OctoprintEnvironment>,
pub octoprint_printer_data: Box<OctoprintPrinterData>,
pub event_data: Option<HashMap<String, Value>>,
pub temperature: Option<HashMap<String, Value>>,
pub print_nanny_plugin_version: String,
pub print_nanny_client_version: String,
pub octoprint_version: String,
pub printer_state: Option<PrinterStateEnum>,
pub polymorphic_ctype: i32,
pub octoprint_device: i32,
pub user: i32,
pub print_session: Option<i32>,
}
Fields
id: i32
ts: Option<f32>
event_source: Option<Box<EventSourceEnum>>
event_type: Option<Box<EventType0c4Enum>>
octoprint_environment: Box<OctoprintEnvironment>
octoprint_printer_data: Box<OctoprintPrinterData>
event_data: Option<HashMap<String, Value>>
temperature: Option<HashMap<String, Value>>
print_nanny_plugin_version: String
print_nanny_client_version: String
octoprint_version: String
printer_state: Option<PrinterStateEnum>
polymorphic_ctype: i32
octoprint_device: i32
user: i32
print_session: Option<i32>
Implementations
pub fn new(
id: i32,
octoprint_environment: OctoprintEnvironment,
octoprint_printer_data: OctoprintPrinterData,
print_nanny_plugin_version: String,
print_nanny_client_version: String,
octoprint_version: String,
polymorphic_ctype: i32,
octoprint_device: i32,
user: i32
) -> PrinterEvent
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PrinterEvent
impl Send for PrinterEvent
impl Sync for PrinterEvent
impl Unpin for PrinterEvent
impl UnwindSafe for PrinterEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more