1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DefRow {
#[serde(rename = "definition", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub definition: Option<Option<serde_json::Value>>,
/// Key is the flag's primary key in the caller's (org, project) store, and the name evaluation looks it up by. On a write it is taken from the URL, never from the body: the stored document's own \"key\" is forced to match.
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// UpdatedAt is when the definition was last written, RFC 3339 UTC.
#[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
pub updated_at: Option<String>,
/// UpdatedBy is the email of the principal who last wrote it. Empty when the write came from an in-process composer (an experiment registering its own assignment flag) rather than from a signed-in person.
#[serde(rename = "updated_by", skip_serializing_if = "Option::is_none")]
pub updated_by: Option<String>,
/// Version is 1 when the key was created and rises by one on every overwrite. It counts writes, not content changes: re-storing an identical document bumps it.
#[serde(rename = "version", skip_serializing_if = "Option::is_none")]
pub version: Option<i32>,
}
impl DefRow {
pub fn new() -> DefRow {
DefRow {
definition: None,
key: None,
updated_at: None,
updated_by: None,
version: None,
}
}
}