1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RoomWork {
/// Open is how many items are still work: everything whose status does not end it. It is the number a channel header shows.
#[serde(rename = "open", skip_serializing_if = "Option::is_none")]
pub open: Option<i32>,
/// Room is the room these counts are for, echoed back as it was resolved.
#[serde(rename = "room", skip_serializing_if = "Option::is_none")]
pub room: Option<String>,
/// Status is the count per board column, carrying EVERY column this surface knows — an empty column reads 0 rather than being absent, so a caller can render the board without inventing the vocabulary. The keys are the same closed set every other operation here validates against.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<std::collections::HashMap<String, i32>>,
/// Total is every item bound to this room, settled ones included, so Total minus Open is what the room has finished.
#[serde(rename = "total", skip_serializing_if = "Option::is_none")]
pub total: Option<i32>,
/// Updated is when anything in this room's work last moved, in unix seconds. ABSENT when the room has no work at all: zero would read as the epoch, and a room nobody has filed anything in has no last activity rather than an infinitely old one. Total is 0 in exactly that case.
#[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
pub updated: Option<i32>,
}
impl RoomWork {
pub fn new() -> RoomWork {
RoomWork {
open: None,
room: None,
status: None,
total: None,
updated: None,
}
}
}