Skip to main content

hanzo_client/models/
world_wire.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 WorldWire {
16    /// Auth states what the wire asks of the caller, including which parts of it answer without a token.
17    #[serde(rename = "auth", skip_serializing_if = "Option::is_none")]
18    pub auth: Option<String>,
19    /// Name is the wire's short id — rest, mcp or zap.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// Path is the address the wire answers on, under this same origin.
23    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
24    pub path: Option<String>,
25    /// Protocol names what the wire speaks, so a caller knows which client to point at it.
26    #[serde(rename = "protocol", skip_serializing_if = "Option::is_none")]
27    pub protocol: Option<String>,
28    /// Spec is where this wire's operations are enumerated, when they are enumerated in a document at all. Empty for a wire that describes itself over its own protocol.
29    #[serde(rename = "spec", skip_serializing_if = "Option::is_none")]
30    pub spec: Option<String>,
31}
32
33impl WorldWire {
34    pub fn new() -> WorldWire {
35        WorldWire {
36            auth: None,
37            name: None,
38            path: None,
39            protocol: None,
40            spec: None,
41        }
42    }
43}
44