pub enum MetadataOutput {
None,
Json,
Frontmatter,
}Expand description
Where the metadata goes in the exports. None (the default) keeps it to
the in-memory document; Json adds a metadata object to the docling
JSON (after origin); Frontmatter opens the Markdown with a YAML front
matter block as well.
Variants§
Implementations§
Source§impl MetadataOutput
impl MetadataOutput
Sourcepub const ACCEPTED: &'static str = "none, json, frontmatter"
pub const ACCEPTED: &'static str = "none, json, frontmatter"
The option’s accepted spellings, for error messages.
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse the wire spelling (case-insensitive; front_matter and
front-matter read as frontmatter).
pub fn as_str(self) -> &'static str
Sourcepub fn front_matter(self) -> bool
pub fn front_matter(self) -> bool
Whether the Markdown export opens with the front matter.
Trait Implementations§
Source§impl Clone for MetadataOutput
impl Clone for MetadataOutput
impl Copy for MetadataOutput
Source§impl Debug for MetadataOutput
impl Debug for MetadataOutput
Source§impl Default for MetadataOutput
impl Default for MetadataOutput
impl Eq for MetadataOutput
Source§impl PartialEq for MetadataOutput
impl PartialEq for MetadataOutput
impl StructuralPartialEq for MetadataOutput
Auto Trait Implementations§
impl Freeze for MetadataOutput
impl RefUnwindSafe for MetadataOutput
impl Send for MetadataOutput
impl Sync for MetadataOutput
impl Unpin for MetadataOutput
impl UnsafeUnpin for MetadataOutput
impl UnwindSafe for MetadataOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.