pub struct ParsedContent {
pub language: Option<String>,
pub text: String,
pub structured: Option<Value>,
pub html: Option<String>,
pub encoding: String,
pub metadata: ContentMetadata,
}Expand description
Parsed content with metadata
Fields§
§language: Option<String>Detected language/format
text: StringParsed content as text
structured: Option<Value>Structured data if applicable (JSON, YAML)
html: Option<String>HTML if applicable
encoding: StringDetected encoding
metadata: ContentMetadataContent metadata
Trait Implementations§
Source§impl Clone for ParsedContent
impl Clone for ParsedContent
Source§fn clone(&self) -> ParsedContent
fn clone(&self) -> ParsedContent
Returns a duplicate of the value. Read more
1.0.0 · 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 ParsedContent
impl RefUnwindSafe for ParsedContent
impl Send for ParsedContent
impl Sync for ParsedContent
impl Unpin for ParsedContent
impl UnwindSafe for ParsedContent
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