hanzo_client/models/step.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 Step {
16 /// Body is the message text. Required. The signed one-click unsubscribe link is appended to it at send time.
17 #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
18 pub body: Option<String>,
19 /// CreatedAt is unix seconds, server-assigned.
20 #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
21 pub created_at: Option<i32>,
22 /// DelaySeconds is how long after the previous step this one sends (after enrollment, for step 0).
23 #[serde(rename = "delaySeconds", skip_serializing_if = "Option::is_none")]
24 pub delay_seconds: Option<i32>,
25 /// ID is the server-assigned step id (\"step_\" + 128 random bits).
26 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27 pub id: Option<String>,
28 /// Idx is the step's 0-based position, assigned by appending: a new step always lands after the last one.
29 #[serde(rename = "idx", skip_serializing_if = "Option::is_none")]
30 pub idx: Option<i32>,
31 /// SequenceID is the sequence this step belongs to.
32 #[serde(rename = "sequenceId", skip_serializing_if = "Option::is_none")]
33 pub sequence_id: Option<String>,
34 /// Subject is the email subject line, capped at 1024 bytes.
35 #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
36 pub subject: Option<String>,
37}
38
39impl Step {
40 pub fn new() -> Step {
41 Step {
42 body: None,
43 created_at: None,
44 delay_seconds: None,
45 id: None,
46 idx: None,
47 sequence_id: None,
48 subject: None,
49 }
50 }
51}
52