pub struct DocumentElement {
pub element_type: String,
pub text: String,
pub metadata: Option<String>,
}Expand description
Document elements (structured content)
Fields§
§element_type: StringType of element (e.g., “heading”, “contact_info”, “experience”)
text: StringText content of the element
metadata: Option<String>Optional metadata for the element
Trait Implementations§
Source§impl Clone for DocumentElement
impl Clone for DocumentElement
Source§fn clone(&self) -> DocumentElement
fn clone(&self) -> DocumentElement
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 DocumentElement
impl RefUnwindSafe for DocumentElement
impl Send for DocumentElement
impl Sync for DocumentElement
impl Unpin for DocumentElement
impl UnsafeUnpin for DocumentElement
impl UnwindSafe for DocumentElement
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