hanzo_client/models/kv_write.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 KvWrite {
16 /// Bucket is the bucket, from the path.
17 #[serde(rename = "bucket", skip_serializing_if = "Option::is_none")]
18 pub bucket: Option<String>,
19 /// Key is the key, from the path.
20 #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
21 pub key: Option<String>,
22 /// Value is the value, carried verbatim as UTF-8 text (typically JSON).
23 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
24 pub value: Option<String>,
25}
26
27impl KvWrite {
28 pub fn new() -> KvWrite {
29 KvWrite {
30 bucket: None,
31 key: None,
32 value: None,
33 }
34 }
35}
36