pub struct OutlineMetadata {
pub numbering_style: Option<String>,
pub has_leaders: bool,
pub page_style: Option<String>,
pub total_entries: usize,
pub levels: u8,
pub structure_type: Option<String>,
}Expand description
Metadata about the table of contents structure
Fields§
§numbering_style: Option<String>Detected Outline style (e.g., “numeric”, “roman”, “alphabetic”, “mixed”)
has_leaders: boolWhether the Outline uses dots or other leaders
page_style: Option<String>Page numbering style (e.g., “arabic”, “roman”, “mixed”)
total_entries: usizeTotal number of entries
levels: u8Number of hierarchical levels
structure_type: Option<String>Detected structure type (e.g., “chapters”, “parts_chapters”, “sections”)
Trait Implementations§
Source§impl Clone for OutlineMetadata
impl Clone for OutlineMetadata
Source§fn clone(&self) -> OutlineMetadata
fn clone(&self) -> OutlineMetadata
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 OutlineMetadata
impl Debug for OutlineMetadata
Source§impl Default for OutlineMetadata
impl Default for OutlineMetadata
Source§fn default() -> OutlineMetadata
fn default() -> OutlineMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OutlineMetadata
impl<'de> Deserialize<'de> for OutlineMetadata
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 OutlineMetadata
impl RefUnwindSafe for OutlineMetadata
impl Send for OutlineMetadata
impl Sync for OutlineMetadata
impl Unpin for OutlineMetadata
impl UnsafeUnpin for OutlineMetadata
impl UnwindSafe for OutlineMetadata
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