Skip to main content

hanzo_client/models/
share_view.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 ShareView {
16    /// Backend is the local endpoint the share proxies to.
17    #[serde(rename = "backend", skip_serializing_if = "Option::is_none")]
18    pub backend: Option<String>,
19    /// BackendMode is how the tunnel serves the backend, e.g. proxy or web.
20    #[serde(rename = "backendMode", skip_serializing_if = "Option::is_none")]
21    pub backend_mode: Option<String>,
22    /// CreatedAt is when the share was opened, unix seconds.
23    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
24    pub created_at: Option<i32>,
25    /// Token is the share's own identifier, the leaf of its public URL.
26    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
27    pub token: Option<String>,
28    /// URL is the share's public address, rendered from the deployment's URL template.
29    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
30    pub url: Option<String>,
31}
32
33impl ShareView {
34    pub fn new() -> ShareView {
35        ShareView {
36            backend: None,
37            backend_mode: None,
38            created_at: None,
39            token: None,
40            url: None,
41        }
42    }
43}
44