Skip to main content

hanzo_client/models/
room_work.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RoomWork {
16    /// Open is how many items are still work: everything whose status does not end it. It is the number a channel header shows.
17    #[serde(rename = "open", skip_serializing_if = "Option::is_none")]
18    pub open: Option<i32>,
19    /// Room is the room these counts are for, echoed back as it was resolved.
20    #[serde(rename = "room", skip_serializing_if = "Option::is_none")]
21    pub room: Option<String>,
22    /// 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.
23    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
24    pub status: Option<std::collections::HashMap<String, i32>>,
25    /// Total is every item bound to this room, settled ones included, so Total minus Open is what the room has finished.
26    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
27    pub total: Option<i32>,
28    /// 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.
29    #[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
30    pub updated: Option<i32>,
31}
32
33impl RoomWork {
34    pub fn new() -> RoomWork {
35        RoomWork {
36            open: None,
37            room: None,
38            status: None,
39            total: None,
40            updated: None,
41        }
42    }
43}
44