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 Admission {
    /// Benchmarks are the catalog ids admitted.
    #[serde(rename = "benchmarks", skip_serializing_if = "Option::is_none")]
    pub benchmarks: Option<Vec<String>>,
    /// Endpoint is the caller's own endpoint the run targets.
    #[serde(rename = "endpoint", skip_serializing_if = "Option::is_none")]
    pub endpoint: Option<String>,
    /// Model is the catalog model the run targets.
    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
    /// Note explains what admission does and does not promise.
    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// Status is \"queued\": the run is admitted, not finished.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}

impl Admission {
    pub fn new() -> Admission {
        Admission {
            benchmarks: None,
            endpoint: None,
            model: None,
            note: None,
            status: None,
        }
    }
}