hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 EmbedStatusResp {
    /// App is the app this verdict is about.
    #[serde(rename = "app", skip_serializing_if = "Option::is_none")]
    pub app: Option<String>,
    /// EmbedURL is the in-app landing URL to frame. Empty when the caller is not entitled — a non-entitled caller never receives it.
    #[serde(rename = "embedUrl", skip_serializing_if = "Option::is_none")]
    pub embed_url: Option<String>,
    /// Entitled is whether the caller's org may frame this brand-owned app.
    #[serde(rename = "entitled", skip_serializing_if = "Option::is_none")]
    pub entitled: Option<bool>,
    /// Origin is the app's origin on this deployment's own brand domain.
    #[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
    pub origin: Option<String>,
    /// Phase is the verdict in one word: not-entitled, not-provisioned or ready.
    #[serde(rename = "phase", skip_serializing_if = "Option::is_none")]
    pub phase: Option<String>,
    /// Reachable is whether the app answered the liveness probe.
    #[serde(rename = "reachable", skip_serializing_if = "Option::is_none")]
    pub reachable: Option<bool>,
}

impl EmbedStatusResp {
    pub fn new() -> EmbedStatusResp {
        EmbedStatusResp {
            app: None,
            embed_url: None,
            entitled: None,
            origin: None,
            phase: None,
            reachable: None,
        }
    }
}