Skip to main content

hanzo_client/models/
bus_request.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 BusRequest {
16    /// Data is the request payload, carried verbatim as UTF-8 text.
17    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
18    pub data: Option<String>,
19    /// Headers are optional request headers, one value per name.
20    #[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
21    pub headers: Option<std::collections::HashMap<String, String>>,
22    /// Subject is the subject a responder listens on, in the org's namespace.
23    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
24    pub subject: Option<String>,
25    /// TimeoutMs bounds the wait for a reply. 0 or less means the default of 5000; anything above 30000 is clamped to 30000.
26    #[serde(rename = "timeoutMs", skip_serializing_if = "Option::is_none")]
27    pub timeout_ms: Option<i32>,
28}
29
30impl BusRequest {
31    pub fn new() -> BusRequest {
32        BusRequest {
33            data: None,
34            headers: None,
35            subject: None,
36            timeout_ms: None,
37        }
38    }
39}
40