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
44
45
46
47
48
/*
* 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 UserEnablementItem {
/// CanOptIn is whether POST /v1/pricing/enablement/optin would do anything here: the item is in beta and this org is not on its list yet. False for a caller with no validated org, who has no org to enrol.
#[serde(rename = "canOptIn", skip_serializing_if = "Option::is_none")]
pub can_opt_in: Option<bool>,
/// Effective is whether the caller's org may use the item right now, which is the field to branch on: true for any ga item, for a beta this org holds, and never for an off one.
#[serde(rename = "effective", skip_serializing_if = "Option::is_none")]
pub effective: Option<bool>,
/// ID is the item within that namespace — a model id, a provider name, or a feature key.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Kind is the namespace the id lives in: \"model\", \"provider\" or \"feature\".
#[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
pub kind: Option<String>,
/// OptedIn is whether the caller's org is on this item's beta grant list. It can be true on an \"off\" item — the list survives the kill switch and is simply ignored while it is thrown — so it does not imply Effective.
#[serde(rename = "optedIn", skip_serializing_if = "Option::is_none")]
pub opted_in: Option<bool>,
/// State is the item's GLOBAL availability — \"off\", \"beta\" or \"ga\" — which is the operator's setting and not this caller's answer. Effective is that.
#[serde(rename = "state", skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
}
impl UserEnablementItem {
pub fn new() -> UserEnablementItem {
UserEnablementItem {
can_opt_in: None,
effective: None,
id: None,
kind: None,
opted_in: None,
state: None,
}
}
}