use serde::{Deserialize, Serialize};
use crate::models::paths::BundleRelativePath;
#[derive(Debug, Clone, Serialize, Deserialize, schemars::JsonSchema)]
pub struct DatasetsSpec {
pub public_dir: BundleRelativePath,
#[serde(skip_serializing_if = "Option::is_none")]
pub private_benchmark_dir: Option<BundleRelativePath>,
pub public_policy: crate::models::evaluation::ScoreVisibility,
pub private_benchmark_policy: PrivateBenchmarkPolicy,
pub private_benchmark_enabled: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize, schemars::JsonSchema)]
pub struct PublicDatasetsSpec {
pub public_dir: BundleRelativePath,
pub public_policy: crate::models::evaluation::ScoreVisibility,
pub private_benchmark_policy: PrivateBenchmarkPolicy,
pub private_benchmark_enabled: bool,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum PrivateBenchmarkPolicy {
ScoreOnly,
}