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 PopulatedFlow {
    /// Created and Updated are unix milliseconds.
    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
    pub created: Option<i32>,
    /// ExternalID is the caller's own id for this flow, if it set one.
    #[serde(rename = "externalId", skip_serializing_if = "Option::is_none")]
    pub external_id: Option<String>,
    /// FolderID groups the flow in the builder's tree.
    #[serde(rename = "folderId", skip_serializing_if = "Option::is_none")]
    pub folder_id: Option<String>,
    /// ID is the flow's id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<Option<serde_json::Value>>,
    /// Org is the owning org, which this surface names projectId. Server-derived from the validated principal — never read from a request.
    #[serde(rename = "projectId", skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    /// PublishedVersionID is the version a run executes when set; empty means the latest version runs.
    #[serde(rename = "publishedVersionId", skip_serializing_if = "Option::is_none")]
    pub published_version_id: Option<String>,
    /// Status is ENABLED or DISABLED — whether the flow's trigger is armed.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    #[serde(rename = "updated", skip_serializing_if = "Option::is_none")]
    pub updated: Option<i32>,
    /// Version is the flow's latest version — its display name and step tree.
    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
    pub version: Option<Box<models::FlowVersion>>,
}

impl PopulatedFlow {
    pub fn new() -> PopulatedFlow {
        PopulatedFlow {
            created: None,
            external_id: None,
            folder_id: None,
            id: None,
            metadata: None,
            project_id: None,
            published_version_id: None,
            status: None,
            updated: None,
            version: None,
        }
    }
}