Download crates/forge_config/src/auto_dump.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 643 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_config/src/auto_dump.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_config/src/auto_dump.rs
-
curl -L -o auto_dump.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_config/src/auto_dump.rs
643 Bytes
| use schemars::JsonSchema; | |
| use serde::{Deserialize, Serialize}; | |
| /// The output format used when auto-dumping a conversation on task completion. | |
| pub enum AutoDumpFormat { | |
| /// Dump as a JSON file | |
| Json, | |
| /// Dump as an HTML file | |
| Html, | |
| } | |
| mod tests { | |
| use pretty_assertions::assert_eq; | |
| use super::*; | |
| fn test_auto_dump_format_variants() { | |
| assert_eq!(AutoDumpFormat::Json, AutoDumpFormat::Json); | |
| assert_eq!(AutoDumpFormat::Html, AutoDumpFormat::Html); | |
| } | |
| } | |