hanzo_client/models/org_optin_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 OrgOptinView {
16 /// CanManage is true only for an admin of this org (or a platform SuperAdmin) — the callers whose write of the org preference will be accepted.
17 #[serde(rename = "canManage", skip_serializing_if = "Option::is_none")]
18 pub can_manage: Option<bool>,
19 /// Display is the name shown for the org on that board. Empty when none was chosen; opting in without one defaults it to the org id.
20 #[serde(rename = "display", skip_serializing_if = "Option::is_none")]
21 pub display: Option<String>,
22 /// Listed is true when the org has opted onto the cross-org global board. False — the default — keeps the org off it entirely; the org's own members still see their own board. Listing consents to publishing usage VOLUME, never spend.
23 #[serde(rename = "listed", skip_serializing_if = "Option::is_none")]
24 pub listed: Option<bool>,
25}
26
27impl OrgOptinView {
28 pub fn new() -> OrgOptinView {
29 OrgOptinView {
30 can_manage: None,
31 display: None,
32 listed: None,
33 }
34 }
35}
36