pub enum Format {
Flat,
Dom,
}Expand description
Format determines how fields are categorized and indexed in the schema.
Different serialization formats have different concepts of “fields”:
- Flat formats (JSON, TOML, YAML) treat all fields as key-value pairs
- DOM formats (XML, HTML) distinguish attributes, elements, and text content
Variants§
Flat
Flat key-value formats (JSON, TOML, YAML, etc.)
All fields are treated as keys with no distinction. The solver
uses see_key() to report field names.
Dom
DOM/tree formats (XML, HTML)
Fields are categorized as attributes, elements, or text content.
The solver uses see_attribute(), see_element(), etc. to report
fields with their category.
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more