hanzo_client/models/next_in.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 NextIn {
16 /// Batch is how many messages to pull (1–1000, default 1).
17 #[serde(rename = "batch", skip_serializing_if = "Option::is_none")]
18 pub batch: Option<i32>,
19 /// Expires is how long to wait for messages, e.g. \"5s\" (default \"30s\", max \"60s\").
20 #[serde(rename = "expires", skip_serializing_if = "Option::is_none")]
21 pub expires: Option<String>,
22 /// Name is the consumer name, from the path.
23 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24 pub name: Option<String>,
25 /// NoWait answers immediately with whatever is available instead of waiting.
26 #[serde(rename = "no_wait", skip_serializing_if = "Option::is_none")]
27 pub no_wait: Option<bool>,
28 /// Stream is the stream name, from the path.
29 #[serde(rename = "stream", skip_serializing_if = "Option::is_none")]
30 pub stream: Option<String>,
31}
32
33impl NextIn {
34 pub fn new() -> NextIn {
35 NextIn {
36 batch: None,
37 expires: None,
38 name: None,
39 no_wait: None,
40 stream: None,
41 }
42 }
43}
44