---
source: src/test_helpers.rs
expression: "&generated_code"
---
//! Generated types from OpenAPI specification
//!
//! This file contains all the generated types for the API.
//! Do not edit manually - regenerate using the appropriate script.
#![allow(clippy::large_enum_variant)]
#![allow(clippy::format_in_format_args)]
#![allow(clippy::let_unit_value)]
#![allow(unreachable_patterns)]
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct ResponseEvent {
pub part: ReasoningPart,
///The type of the event. Always `response.event.done`.
pub r#type: ResponseEventType,
}
///The type of the event. Always `response.event.done`.
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize, Default)]
pub enum ResponseEventType {
#[default]
#[serde(rename = "response.event.done")]
ResponseEventDone,
}
impl ResponseEventType {
pub fn as_str(&self) -> &'static str {
match self {
Self::ResponseEventDone => "response.event.done",
}
}
}
impl ::std::fmt::Display for ResponseEventType {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
f.write_str(self.as_str())
}
}
impl AsRef<str> for ResponseEventType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct ReasoningPart {
pub text: String,
///The type of the part. Always `summary_text`.
pub r#type: ReasoningPartType,
}
///The type of the part. Always `summary_text`.
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize, Default)]
pub enum ReasoningPartType {
#[default]
#[serde(rename = "summary_text")]
SummaryText,
}
impl ReasoningPartType {
pub fn as_str(&self) -> &'static str {
match self {
Self::SummaryText => "summary_text",
}
}
}
impl ::std::fmt::Display for ReasoningPartType {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
f.write_str(self.as_str())
}
}
impl AsRef<str> for ReasoningPartType {
fn as_ref(&self) -> &str {
self.as_str()
}
}