Skip to main content

hanzo_client/models/
device_start_out.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 DeviceStartOut {
16    /// ExpiresAt is when the flow dies, RFC 3339 UTC.
17    #[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
18    pub expires_at: Option<String>,
19    /// Flow is the id to poll with.
20    #[serde(rename = "flow", skip_serializing_if = "Option::is_none")]
21    pub flow: Option<String>,
22    /// Interval is the seconds to wait between polls.
23    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
24    pub interval: Option<i32>,
25    /// UserCode is the short code the user types at VerifyURL.
26    #[serde(rename = "userCode", skip_serializing_if = "Option::is_none")]
27    pub user_code: Option<String>,
28    /// VerifyURL is the page the user opens to enter UserCode.
29    #[serde(rename = "verifyUrl", skip_serializing_if = "Option::is_none")]
30    pub verify_url: Option<String>,
31}
32
33impl DeviceStartOut {
34    pub fn new() -> DeviceStartOut {
35        DeviceStartOut {
36            expires_at: None,
37            flow: None,
38            interval: None,
39            user_code: None,
40            verify_url: None,
41        }
42    }
43}
44