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 ScreenResult {
    /// DraftReply is a suggested email reply for staff to edit and send.
    #[serde(rename = "draftReply", skip_serializing_if = "Option::is_none")]
    pub draft_reply: Option<String>,
    /// Error says why a failed screen failed — no AI gateway configured, a gateway error, or a reply that carried no parseable JSON. Absent on success.
    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
    pub error: Option<String>,
    /// Model is the LLM the screen ran on.
    #[serde(rename = "model", skip_serializing_if = "Option::is_none")]
    pub model: Option<String>,
    /// Score is the model's 0..100 fit score, clamped to that range.
    #[serde(rename = "score", skip_serializing_if = "Option::is_none")]
    pub score: Option<i32>,
    /// ScreenedAt is the unix second the screen finished (0 while pending).
    #[serde(rename = "screenedAt", skip_serializing_if = "Option::is_none")]
    pub screened_at: Option<i32>,
    /// Status is the screen's state: pending | done | failed.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// SuggestedCredits is the recommended credit grant in USD, snapped to the nearest allowed rung: 0 | 5000 | 25000 | 50000 | 150000.
    #[serde(rename = "suggestedCredits", skip_serializing_if = "Option::is_none")]
    pub suggested_credits: Option<i32>,
    /// Summary is the model's short assessment of the application.
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    /// Tier1Backed is the model's read on tier-1 backing, normalized to \"yes\", \"no\" or \"unclear\" (anything it cannot resolve reads \"unclear\").
    #[serde(rename = "tier1Backed", skip_serializing_if = "Option::is_none")]
    pub tier1_backed: Option<String>,
}

impl ScreenResult {
    pub fn new() -> ScreenResult {
        ScreenResult {
            draft_reply: None,
            error: None,
            model: None,
            score: None,
            screened_at: None,
            status: None,
            suggested_credits: None,
            summary: None,
            tier1_backed: None,
        }
    }
}