Skip to main content

hanzo_client/models/
question.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 Question {
16    /// Account is the chart number the questioned entry posted to, where one applies.
17    #[serde(rename = "account", skip_serializing_if = "Option::is_none")]
18    pub account: Option<String>,
19    /// Amount is the figure that makes the question concrete, already FORMATTED for display with its currency symbol — a string, not cents, and not for arithmetic.
20    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
21    pub amount: Option<String>,
22    /// ID is the source transaction the question is about, so answering it leads straight back to the entry that raised it.
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    /// Kind is what looked wrong: outlier (a charge far above the usual), reversal (a posting undone), roundoff (a balancing plug big enough to be worth explaining), uncosted (revenue booked with no cost matched to it), or overdrawn (a wallet spent past its balance).
26    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
27    pub kind: Option<String>,
28    /// PostedAt anchors the question in time — when the entry it concerns posted.
29    #[serde(rename = "postedAt", skip_serializing_if = "Option::is_none")]
30    pub posted_at: Option<String>,
31    /// Text is the question itself, written for a founder to answer directly.
32    #[serde(rename = "text", skip_serializing_if = "Option::is_none")]
33    pub text: Option<String>,
34}
35
36impl Question {
37    pub fn new() -> Question {
38        Question {
39            account: None,
40            amount: None,
41            id: None,
42            kind: None,
43            posted_at: None,
44            text: None,
45        }
46    }
47}
48