hanzo_client/models/sequence.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 Sequence {
16 /// CreatedAt is unix seconds when the sequence was registered, server-assigned and never rewritten.
17 #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
18 pub created_at: Option<i32>,
19 /// ID is the server-assigned sequence id (\"seq_\" + 128 random bits).
20 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
21 pub id: Option<String>,
22 /// Name is the sequence's label. Required, trimmed, capped at 1024 bytes.
23 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24 pub name: Option<String>,
25 /// Status is the lifecycle: draft, active or archived. Empty means draft, and ONLY an active sequence accepts enrollments.
26 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
27 pub status: Option<String>,
28 /// UpdatedAt is unix seconds of the last status flip, server-assigned, and the key the sequence list is ordered by (newest first). Adding a step or enrolling a contact does NOT touch it — only draft/active/archived does — so it tracks activation rather than activity.
29 #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
30 pub updated_at: Option<i32>,
31}
32
33impl Sequence {
34 pub fn new() -> Sequence {
35 Sequence {
36 created_at: None,
37 id: None,
38 name: None,
39 status: None,
40 updated_at: None,
41 }
42 }
43}
44