hanzo_client/models/help_ticket_intake.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 HelpTicketIntake {
16 /// Description is the customer's message. Optional; it becomes the ticket's description AND the opening entry of its conversation thread. Clipped at 16 KiB.
17 #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
18 pub description: Option<String>,
19 /// Email is how the support team replies. Required; clipped at 320 characters (the RFC 5321 maximum). It is recorded as the ticket's customer, and it is not verified.
20 #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
21 pub email: Option<String>,
22 /// Priority is Low, Medium, High or Urgent, case-insensitively. Anything else — including omitting it — is recorded as Medium rather than refused.
23 #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
24 pub priority: Option<String>,
25 /// Subject is the one-line summary of the problem. Required; longer than 300 characters is clipped rather than refused.
26 #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
27 pub subject: Option<String>,
28}
29
30impl HelpTicketIntake {
31 pub fn new() -> HelpTicketIntake {
32 HelpTicketIntake {
33 description: None,
34 email: None,
35 priority: None,
36 subject: None,
37 }
38 }
39}
40