hanzo_client/models/mesh_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 MeshView {
16 /// ID is the ZT edge service's id.
17 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18 pub id: Option<String>,
19 /// Mtls is \"required\" when the service mandates end-to-end encryption, else \"enabled\" — the fabric mutually authenticates every link, so it is never truly off.
20 #[serde(rename = "mtls", skip_serializing_if = "Option::is_none")]
21 pub mtls: Option<String>,
22 /// Service is the edge service's name.
23 #[serde(rename = "service", skip_serializing_if = "Option::is_none")]
24 pub service: Option<String>,
25 /// Status is \"active\": a listed service is a configured, dialable mesh entry.
26 #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
27 pub status: Option<String>,
28}
29
30impl MeshView {
31 pub fn new() -> MeshView {
32 MeshView {
33 id: None,
34 mtls: None,
35 service: None,
36 status: None,
37 }
38 }
39}
40