pub struct WikiStats {Show 15 fields
pub wiki: String,
pub pages: usize,
pub sections: usize,
pub types: HashMap<String, u64>,
pub status: HashMap<String, u64>,
pub orphans: usize,
pub avg_connections: f64,
pub graph_density: f64,
pub staleness: StalenessBuckets,
pub index: IndexHealth,
pub communities: Option<CommunityStats>,
pub diameter: Option<f32>,
pub radius: Option<f32>,
pub center: Vec<String>,
pub structural_note: Option<String>,
}Expand description
Aggregate statistics for a single wiki space.
Fields§
§wiki: StringName of the wiki.
pages: usizeTotal number of indexed pages.
sections: usizeNumber of pages whose type is "section".
types: HashMap<String, u64>Page count per frontmatter type.
status: HashMap<String, u64>Page count per frontmatter status.
orphans: usizeNumber of pages with no incoming links.
avg_connections: f64Mean number of links per page (rounded to 2 decimal places).
graph_density: f64Graph density (edges / max-possible-edges, rounded to 2 decimal places).
staleness: StalenessBucketsPage staleness buckets by last-updated date.
index: IndexHealthIndex health — staleness and last build timestamp.
communities: Option<CommunityStats>Louvain community detection results; None when graph is below min_nodes_for_communities.
diameter: Option<f32>Maximum shortest directed-path length between any two pages.
None when graph exceeds max_nodes_for_diameter or structural_algorithms is false.
radius: Option<f32>Minimum eccentricity — closest page to all others on average.
None under same conditions as diameter.
center: Vec<String>Slugs with eccentricity equal to radius (central hub pages).
Empty when diameter is None.
structural_note: Option<String>Non-null when O(n²) algorithms were skipped due to graph size.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WikiStats
impl<'de> Deserialize<'de> for WikiStats
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>,
Auto Trait Implementations§
impl Freeze for WikiStats
impl RefUnwindSafe for WikiStats
impl Send for WikiStats
impl Sync for WikiStats
impl Unpin for WikiStats
impl UnsafeUnpin for WikiStats
impl UnwindSafe for WikiStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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 more