Traits
This commit is contained in:
parent
958cf8829a
commit
b6dba5fc88
4 changed files with 15 additions and 12 deletions
|
|
@ -1,6 +1,7 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum ToDoStatus {
|
||||
Pending,
|
||||
InProgress,
|
||||
|
|
@ -38,7 +39,7 @@ impl std::str::FromStr for ToDoStatus {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum TaskStatus {
|
||||
Pending,
|
||||
Running,
|
||||
|
|
@ -76,7 +77,7 @@ impl std::str::FromStr for TaskStatus {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum ModelType {
|
||||
Llm,
|
||||
CodeGen,
|
||||
|
|
@ -114,7 +115,7 @@ impl std::str::FromStr for ModelType {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum DocType {
|
||||
ApiDoc,
|
||||
Readme,
|
||||
|
|
@ -135,7 +136,7 @@ impl fmt::Display for DocType {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum PromptType {
|
||||
Authority,
|
||||
Confirm,
|
||||
|
|
@ -152,7 +153,7 @@ impl fmt::Display for PromptType {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum PromptOption {
|
||||
Accept,
|
||||
Deny,
|
||||
|
|
@ -181,7 +182,7 @@ impl fmt::Display for PromptOption {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum TaskResultType {
|
||||
Success,
|
||||
Error,
|
||||
|
|
|
|||
Loading…
Reference in a new issue