pub struct MarkdownStats {
pub word_count: usize,
pub headings: Vec<HeadingInfo>,
pub code_blocks: usize,
pub links: usize,
pub images: usize,
pub tables: usize,
pub lists: usize,
pub front_matter: Option<String>,
pub preview: String,
}Expand description
Statistics for Markdown files
Fields§
§word_count: usizeWord count
headings: Vec<HeadingInfo>Headings with their text and level (1-6)
code_blocks: usizeNumber of code blocks
links: usizeNumber of links
images: usizeNumber of images
tables: usizeNumber of tables
lists: usizeNumber of lists
front_matter: Option<String>YAML/TOML frontmatter type if present
preview: StringPreview of first few lines
Implementations§
Source§impl MarkdownStats
impl MarkdownStats
Trait Implementations§
Source§impl Clone for MarkdownStats
impl Clone for MarkdownStats
Source§fn clone(&self) -> MarkdownStats
fn clone(&self) -> MarkdownStats
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 moreSource§impl Debug for MarkdownStats
impl Debug for MarkdownStats
Source§impl<'de> Deserialize<'de> for MarkdownStats
impl<'de> Deserialize<'de> for MarkdownStats
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
Source§impl JsonSchema for MarkdownStats
impl JsonSchema for MarkdownStats
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MarkdownStats
impl PartialEq for MarkdownStats
Source§impl Serialize for MarkdownStats
impl Serialize for MarkdownStats
impl StructuralPartialEq for MarkdownStats
Auto Trait Implementations§
impl Freeze for MarkdownStats
impl RefUnwindSafe for MarkdownStats
impl Send for MarkdownStats
impl Sync for MarkdownStats
impl Unpin for MarkdownStats
impl UnsafeUnpin for MarkdownStats
impl UnwindSafe for MarkdownStats
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