15 lines
465 B
Rust
15 lines
465 B
Rust
use serde::{Deserialize, Serialize};
|
|
#[cfg(feature = "spacetime-types")]
|
|
use spacetimedb::SpacetimeType;
|
|
|
|
use crate::{AiTaskSnapshot, AiTextChunkSnapshot};
|
|
|
|
#[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))]
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct AiTaskProcedureResult {
|
|
pub ok: bool,
|
|
pub task: Option<AiTaskSnapshot>,
|
|
pub text_chunk: Option<AiTextChunkSnapshot>,
|
|
pub error_message: Option<String>,
|
|
}
|