hanzo_client/models/projection_view.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 ProjectionView {
16 /// Apps says, per console app, whether the org may open it. The SAME six keys are always present (studio, bot, world, platform, team, admin), so a client maps over it unconditionally; a key is false both when the plan does not grant the app and when commerce could not be reached, because a read that decides what to SHOW fails to LOCKED rather than to an error.
17 #[serde(rename = "apps", skip_serializing_if = "Option::is_none")]
18 pub apps: Option<std::collections::HashMap<String, bool>>,
19 /// Tier is the plan slug commerce resolved for the org, or \"\" when the org has no active licensing subscription — which the console treats as its free default.
20 #[serde(rename = "tier", skip_serializing_if = "Option::is_none")]
21 pub tier: Option<String>,
22}
23
24impl ProjectionView {
25 pub fn new() -> ProjectionView {
26 ProjectionView {
27 apps: None,
28 tier: None,
29 }
30 }
31}
32