Skip to main content

objectiveai_sdk/functions/profiles/computations/response/unary/
object.rs

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