forgecode / crates /forge_config /src /auto_dump.rs
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
1851bae verified
Raw
History Blame Contribute Delete
643 Bytes
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
/// The output format used when auto-dumping a conversation on task completion.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema, fake::Dummy)]
#[serde(rename_all = "snake_case")]
pub enum AutoDumpFormat {
/// Dump as a JSON file
Json,
/// Dump as an HTML file
Html,
}
#[cfg(test)]
mod tests {
use pretty_assertions::assert_eq;
use super::*;
#[test]
fn test_auto_dump_format_variants() {
assert_eq!(AutoDumpFormat::Json, AutoDumpFormat::Json);
assert_eq!(AutoDumpFormat::Html, AutoDumpFormat::Html);
}
}