spring_ai_rs/ai_interface/callback/
trajectory.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Copy, PartialEq, Eq, Hash, Clone, Serialize, Deserialize)]
4pub enum Trajectory {
5 Low,
6 High,
7}
8
9impl Into<i32> for Trajectory {
10 fn into(self) -> i32 {
11 match self {
12 Trajectory::Low => 0,
13 Trajectory::High => 1,
14 }
15 }
16}
17
18impl Into<Trajectory> for i32 {
19 fn into(self) -> Trajectory {
20 match self {
21 0 => Trajectory::Low,
22 1 => Trajectory::High,
23 _ => unimplemented!(),
24 }
25 }
26}