Skip to main content

hanzo_client/models/
base_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 BaseView {
16    /// Bytes is the store's size on disk, present only once it exists. It is what this Base occupies, not a quota.
17    #[serde(rename = "bytes", skip_serializing_if = "Option::is_none")]
18    pub bytes: Option<i32>,
19    /// Exists reports whether this Base's store has been provisioned. False is an org nobody has stored anything for yet, which is a state to name rather than an error: the store is created the first time anything writes.
20    #[serde(rename = "exists", skip_serializing_if = "Option::is_none")]
21    pub exists: Option<bool>,
22    /// Org is the org this Base belongs to. It is the address every other Base call is scoped by, and a Base has no name of its own.
23    #[serde(rename = "org", skip_serializing_if = "Option::is_none")]
24    pub org: Option<String>,
25}
26
27impl BaseView {
28    pub fn new() -> BaseView {
29        BaseView {
30            bytes: None,
31            exists: None,
32            org: None,
33        }
34    }
35}
36