vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * Vapi API
 *
 * Voice AI for developers.
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TestSuiteTestScorerAi {
    /// This is the type of the scorer, which must be AI.
    #[serde(rename = "type")]
    pub r#type: TypeTrue,
    /// This is the rubric used by the AI scorer.
    #[serde(rename = "rubric")]
    pub rubric: String,
}

impl TestSuiteTestScorerAi {
    pub fn new(r#type: TypeTrue, rubric: String) -> TestSuiteTestScorerAi {
        TestSuiteTestScorerAi { r#type, rubric }
    }
}
/// This is the type of the scorer, which must be AI.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TypeTrue {
    #[serde(rename = "ai")]
    Ai,
}

impl Default for TypeTrue {
    fn default() -> TypeTrue {
        Self::Ai
    }
}