Description
Port openvariant/annotation/config_annotation.py enums to Rust serde-compatible types: AnnotationType, AnnotationDelimiter, AnnotationFormat.
Files
src/annotation/config.rs — NEW
src/annotation/mod.rs — NEW
Definition of Done
Documentation needed: No external docs needed; add rustdoc comments on each variant.
Tests needed: Rust unit test in the same file — round-trip YAML parse → serialize for each variant.
Depends on: #61
Note: perform an accurate validation of the YAML annotation format. Detect all possible syntax, structural, and semantic errors, and provide clear explanations to help users quickly identify any issues.
Description
Port
openvariant/annotation/config_annotation.pyenums to Rust serde-compatible types:AnnotationType,AnnotationDelimiter,AnnotationFormat.Files
src/annotation/config.rs— NEWsrc/annotation/mod.rs— NEWDefinition of Done
AnnotationTypecoversStatic | Internal | Dirname | Filename | Mapping | PluginSerialize,Deserialize,Debug,Clone,PartialEqserde(rename_all = "lowercase")matches YAML keys exactlyDocumentation needed: No external docs needed; add rustdoc comments on each variant.
Tests needed: Rust unit test in the same file — round-trip YAML parse → serialize for each variant.
Depends on: #61
Note: perform an accurate validation of the YAML annotation format. Detect all possible syntax, structural, and semantic errors, and provide clear explanations to help users quickly identify any issues.