Skip to main content

objectiveai_sdk/laboratories/executions/response/unary/
object.rs

1use crate::laboratories::executions::response;
2use serde::{Deserialize, Serialize};
3use schemars::JsonSchema;
4
5#[derive(Debug, Clone, Copy, Serialize, Deserialize, JsonSchema)]
6#[schemars(rename = "laboratories.executions.response.unary.Object")]
7pub enum Object {
8    #[serde(rename = "laboratory.execution")]
9    LaboratoryExecution,
10}
11
12impl From<response::streaming::Object> for Object {
13    fn from(value: response::streaming::Object) -> Self {
14        match value {
15            response::streaming::Object::LaboratoryExecutionChunk => {
16                Object::LaboratoryExecution
17            }
18        }
19    }
20}