pub struct ListingOutline {
pub document_title: Option<String>,
pub entries: Vec<OutlineEntry>,
pub confidence: f64,
pub metadata: OutlineMetadata,
}Expand description
Complete table of contents structure
Fields§
§document_title: Option<String>Document title (optional)
entries: Vec<OutlineEntry>Main Outline entries
confidence: f64Extraction confidence (0.0 - 1.0)
metadata: OutlineMetadataAdditional metadata about the Outline structure
Implementations§
Source§impl ListingOutline
impl ListingOutline
pub fn new() -> Self
Sourcepub fn flatten(&self) -> Vec<FlatOutlineEntry>
pub fn flatten(&self) -> Vec<FlatOutlineEntry>
Get all entries as a flat list
Sourcepub fn entries_at_level(&self, level: u8) -> Vec<&OutlineEntry>
pub fn entries_at_level(&self, level: u8) -> Vec<&OutlineEntry>
Get entries at a specific level
Trait Implementations§
Source§impl Clone for ListingOutline
impl Clone for ListingOutline
Source§fn clone(&self) -> ListingOutline
fn clone(&self) -> ListingOutline
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 ListingOutline
impl Debug for ListingOutline
Source§impl Default for ListingOutline
impl Default for ListingOutline
Source§impl<'de> Deserialize<'de> for ListingOutline
impl<'de> Deserialize<'de> for ListingOutline
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 ListingOutline
impl RefUnwindSafe for ListingOutline
impl Send for ListingOutline
impl Sync for ListingOutline
impl Unpin for ListingOutline
impl UnsafeUnpin for ListingOutline
impl UnwindSafe for ListingOutline
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