Skip to main content

hanzo_client/models/
enroll_input.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 EnrollInput {
16    /// Address is a single recipient, normalized (lower-cased, trimmed) before use. Give this OR audienceId, never both and never neither.
17    #[serde(rename = "address", skip_serializing_if = "Option::is_none")]
18    pub address: Option<String>,
19    /// AudienceID fans the sequence out over a saved audience, resolved live to the org's mailable customers. Email only.
20    #[serde(rename = "audienceId", skip_serializing_if = "Option::is_none")]
21    pub audience_id: Option<String>,
22    /// Channel is the delivery surface; empty means email. An audience resolves mailboxes, so an audience enroll must be email.
23    #[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
24    pub channel: Option<String>,
25    /// ID is the sequence id from the path.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28}
29
30impl EnrollInput {
31    pub fn new() -> EnrollInput {
32        EnrollInput {
33            address: None,
34            audience_id: None,
35            channel: None,
36            id: None,
37        }
38    }
39}
40