print_nanny_api_client/models/
octoprint_printer_state_request.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct OctoprintPrinterStateRequest {
16 #[serde(rename = "text")]
17 pub text: String,
18 #[serde(rename = "flags")]
19 pub flags: Box<crate::models::OctoprintPrinterFlagsRequest>,
20}
21
22impl OctoprintPrinterStateRequest {
23 pub fn new(text: String, flags: crate::models::OctoprintPrinterFlagsRequest) -> OctoprintPrinterStateRequest {
24 OctoprintPrinterStateRequest {
25 text,
26 flags: Box::new(flags),
27 }
28 }
29}
30
31