pub enum DocumentContent {
Markdown(MarkdownDoc),
Yaml(Value),
Json(Value),
ParseError(String),
Text,
Empty,
}Expand description
Format-specific parsed representation for a document.
Variants§
Markdown(MarkdownDoc)
Parsed Markdown structure.
Yaml(Value)
Parsed YAML value.
Json(Value)
Parsed JSON value.
ParseError(String)
The file was recognized as YAML or JSON but failed to parse. The
stored string is the parser error message so rules like
malformed-yaml (AIL041) can surface it.
Text
Plain text with no recognized structure.
Empty
A zero-length or whitespace-only file.
Trait Implementations§
Source§impl Clone for DocumentContent
impl Clone for DocumentContent
Source§fn clone(&self) -> DocumentContent
fn clone(&self) -> DocumentContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DocumentContent
impl RefUnwindSafe for DocumentContent
impl Send for DocumentContent
impl Sync for DocumentContent
impl Unpin for DocumentContent
impl UnsafeUnpin for DocumentContent
impl UnwindSafe for DocumentContent
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