mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
33 lines
567 B
Rust
33 lines
567 B
Rust
use serde::{Deserialize, Serialize};
|
|
use strum::{Display, EnumString, IntoStaticStr};
|
|
|
|
#[derive(
|
|
Debug,
|
|
Clone,
|
|
Copy,
|
|
PartialEq,
|
|
Eq,
|
|
Default,
|
|
Serialize,
|
|
Deserialize,
|
|
Display,
|
|
EnumString,
|
|
IntoStaticStr,
|
|
)]
|
|
#[serde(rename_all = "lowercase")]
|
|
#[strum(serialize_all = "lowercase")]
|
|
pub enum ModelTestMode {
|
|
#[default]
|
|
Basic,
|
|
Deep,
|
|
}
|
|
|
|
impl ModelTestMode {
|
|
#[must_use]
|
|
pub const fn timeout_secs(self) -> u64 {
|
|
match self {
|
|
Self::Basic => 30,
|
|
Self::Deep => 90,
|
|
}
|
|
}
|
|
}
|