1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 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,
}
}
}