pub struct MarkdownResult {
pub content: String,
pub document_structure: Option<Value>,
pub tables: Vec<Value>,
pub warnings: Vec<String>,
pub citations: bool,
pub fit_content: Option<String>,
}Expand description
Rich markdown conversion result from HTML processing.
Fields§
§content: StringConverted markdown text.
document_structure: Option<Value>Structured document tree with semantic nodes.
tables: Vec<Value>Extracted tables with structured cell data.
warnings: Vec<String>Non-fatal processing warnings.
citations: boolWhether citation conversion was applied and produced at least one reference.
true when the markdown contained inline links that were converted to
numbered citation references. The converted content (with [N] markers)
is available in content; the full reference list is accessible via
crate::citations::generate_citations if needed separately.
fit_content: Option<String>Content-filtered markdown optimized for LLM consumption.
Trait Implementations§
Source§impl Clone for MarkdownResult
impl Clone for MarkdownResult
Source§fn clone(&self) -> MarkdownResult
fn clone(&self) -> MarkdownResult
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 moreSource§impl Debug for MarkdownResult
impl Debug for MarkdownResult
Source§impl Default for MarkdownResult
impl Default for MarkdownResult
Source§fn default() -> MarkdownResult
fn default() -> MarkdownResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MarkdownResult
impl<'de> Deserialize<'de> for MarkdownResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MarkdownResult
impl RefUnwindSafe for MarkdownResult
impl Send for MarkdownResult
impl Sync for MarkdownResult
impl Unpin for MarkdownResult
impl UnsafeUnpin for MarkdownResult
impl UnwindSafe for MarkdownResult
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