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 PipelineView {
    /// CreatedAt is when the pipeline was first stored, RFC3339 UTC. Absent on the default.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// Default is true when no pipeline is stored for this project and these are the built-in world feeds. Writing one turns it false.
    #[serde(rename = "default", skip_serializing_if = "Option::is_none")]
    pub default: Option<bool>,
    /// Feeds is the RSS/Atom feed URLs the pipeline reads. Every host is on the server's allowlist — a URL that is not cannot be stored.
    #[serde(rename = "feeds", skip_serializing_if = "Option::is_none")]
    pub feeds: Option<Vec<String>>,
    /// Filters narrows the merged feed.
    #[serde(rename = "filters", skip_serializing_if = "Option::is_none")]
    pub filters: Option<Box<models::Filters>>,
    /// Org is the tenant the pipeline belongs to, resolved server-side from the validated principal.
    #[serde(rename = "org", skip_serializing_if = "Option::is_none")]
    pub org: Option<String>,
    /// Project is the org sub-scope the pipeline belongs to.
    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
    pub project: Option<String>,
    /// UpdatedAt is when it was last written, RFC3339 UTC. Absent on the default.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<String>,
}

impl PipelineView {
    pub fn new() -> PipelineView {
        PipelineView {
            created_at: None,
            default: None,
            feeds: None,
            filters: None,
            org: None,
            project: None,
            updated_at: None,
        }
    }
}