hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * 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/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EnrollResult {
    /// AlreadyEnrolled is how many this sequence had already taken and were left alone.
    #[serde(rename = "alreadyEnrolled", skip_serializing_if = "Option::is_none")]
    pub already_enrolled: Option<i32>,
    /// Enrolled is how many started a walk on this call.
    #[serde(rename = "enrolled", skip_serializing_if = "Option::is_none")]
    pub enrolled: Option<i32>,
    /// EnrollmentID names the walk, and is present ONLY for a single-address enroll — a fan-out has many, and reporting one of them would be a lie.
    #[serde(rename = "enrollmentId", skip_serializing_if = "Option::is_none")]
    pub enrollment_id: Option<String>,
    /// Resolved is how many addresses the request named — 1 for an address, the audience's deliverable count for an audience.
    #[serde(rename = "resolved", skip_serializing_if = "Option::is_none")]
    pub resolved: Option<i32>,
}

impl EnrollResult {
    pub fn new() -> EnrollResult {
        EnrollResult {
            already_enrolled: None,
            enrolled: None,
            enrollment_id: None,
            resolved: None,
        }
    }
}