pub struct DocumentStats {
pub text: TextStats,
pub headings_by_level: [usize; 6],
pub heading_count: usize,
pub link_count: usize,
pub image_count: usize,
pub code_block_count: usize,
pub table_count: usize,
pub blockquote_count: usize,
pub list_item_count: usize,
pub reading_time_minutes: u32,
}Available on crate features
editor and statistics only.Expand description
Comprehensive document statistics including markdown elements.
Fields§
§text: TextStatsBasic text statistics
headings_by_level: [usize; 6]Count of headings by level (index 0 = H1, index 5 = H6)
heading_count: usizeTotal number of headings
link_count: usizeNumber of links
image_count: usizeNumber of images
code_block_count: usizeNumber of code blocks
table_count: usizeNumber of tables
blockquote_count: usizeNumber of blockquotes
list_item_count: usizeNumber of list items
reading_time_minutes: u32Estimated reading time in minutes
Implementations§
Source§impl DocumentStats
impl DocumentStats
Trait Implementations§
Source§impl Clone for DocumentStats
impl Clone for DocumentStats
Source§fn clone(&self) -> DocumentStats
fn clone(&self) -> DocumentStats
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 DocumentStats
impl Debug for DocumentStats
Source§impl Default for DocumentStats
impl Default for DocumentStats
Source§fn default() -> DocumentStats
fn default() -> DocumentStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentStats
impl<'de> Deserialize<'de> for DocumentStats
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 PartialEq for DocumentStats
impl PartialEq for DocumentStats
Source§impl Serialize for DocumentStats
impl Serialize for DocumentStats
impl Eq for DocumentStats
impl StructuralPartialEq for DocumentStats
Auto Trait Implementations§
impl Freeze for DocumentStats
impl RefUnwindSafe for DocumentStats
impl Send for DocumentStats
impl Sync for DocumentStats
impl Unpin for DocumentStats
impl UnwindSafe for DocumentStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
Tries to deserialize the data, given only the
submit event.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.