pub struct ApiRegistryStats {
pub total_nodes: usize,
pub total_schemas: usize,
pub total_endpoints: usize,
pub apis_by_name: HashMap<String, usize>,
pub queries: u64,
pub updates: u64,
}Expand description
Registry statistics
Fields§
§total_nodes: usizeTotal nodes registered
total_schemas: usizeNumber of distinct (provider node, API name) pairs — i.e.
apis_by_name.values().sum(). NOT a count of schema objects: a node
that lists the same API name in two schemas counts once (the registry
indexes API name → provider set, so a name has at most one entry per
node). For distinct names per node these coincide.
total_endpoints: usizeTotal endpoint instances across all registered schemas (a node’s two same-named schemas contribute both their endpoint counts).
apis_by_name: HashMap<String, usize>For each API name, the number of distinct provider nodes advertising it (deduplicated per node).
queries: u64Query count
updates: u64Update count
Trait Implementations§
Source§impl Clone for ApiRegistryStats
impl Clone for ApiRegistryStats
Source§fn clone(&self) -> ApiRegistryStats
fn clone(&self) -> ApiRegistryStats
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 ApiRegistryStats
impl Debug for ApiRegistryStats
Source§impl Default for ApiRegistryStats
impl Default for ApiRegistryStats
Source§fn default() -> ApiRegistryStats
fn default() -> ApiRegistryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApiRegistryStats
impl RefUnwindSafe for ApiRegistryStats
impl Send for ApiRegistryStats
impl Sync for ApiRegistryStats
impl Unpin for ApiRegistryStats
impl UnsafeUnpin for ApiRegistryStats
impl UnwindSafe for ApiRegistryStats
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