print_nanny_api_client/models/
octoprint_printer_state_request.rs

1/*
2 * printnanny-api-client
3 *
4 * Official API client library for print-nanny.com
5 *
6 * The version of the OpenAPI document: 0.0.0
7 * Contact: leigh@print-nanny.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[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