1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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,
}
}
}