Skip to main content

hanzo_client/models/
transition_in.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 TransitionIn {
16    /// DocType is the content type to act on, from the path.
17    #[serde(rename = "doctype", skip_serializing_if = "Option::is_none")]
18    pub doctype: Option<String>,
19    /// Name is the document to act on, from the path.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// ScheduleAt is an ISO-8601 go-live time handed to the channel's own scheduler; \"\" distributes now.
23    #[serde(rename = "scheduleAt", skip_serializing_if = "Option::is_none")]
24    pub schedule_at: Option<String>,
25    /// To is the lifecycle state to move to. Required, and the move must be a legal edge from the item's current state.
26    #[serde(rename = "to", skip_serializing_if = "Option::is_none")]
27    pub to: Option<String>,
28}
29
30impl TransitionIn {
31    pub fn new() -> TransitionIn {
32        TransitionIn {
33            doctype: None,
34            name: None,
35            schedule_at: None,
36            to: None,
37        }
38    }
39}
40