pub struct SourceWithCounts {
pub source: SourceRow,
pub record_count: u64,
pub chunk_count: u64,
}Expand description
Source row joined with its current per-source counts. Returned by
list_sources_with_counts; consumed by MCP list_sources and CLI
source list so agents and operators see how much data is behind
each registered source.
Fields§
§source: SourceRowThe source registry row itself.
record_count: u64Number of distinct records currently in the store for this
(adapter, instance) pair. 0 for a registered-but-never-imported
source — that’s a useful staleness signal, not a defect.
chunk_count: u64Number of chunks across all records for this source.
Trait Implementations§
Source§impl Clone for SourceWithCounts
impl Clone for SourceWithCounts
Source§fn clone(&self) -> SourceWithCounts
fn clone(&self) -> SourceWithCounts
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 SourceWithCounts
impl Debug for SourceWithCounts
Source§impl PartialEq for SourceWithCounts
impl PartialEq for SourceWithCounts
Source§fn eq(&self, other: &SourceWithCounts) -> bool
fn eq(&self, other: &SourceWithCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SourceWithCounts
impl StructuralPartialEq for SourceWithCounts
Auto Trait Implementations§
impl Freeze for SourceWithCounts
impl RefUnwindSafe for SourceWithCounts
impl Send for SourceWithCounts
impl Sync for SourceWithCounts
impl Unpin for SourceWithCounts
impl UnsafeUnpin for SourceWithCounts
impl UnwindSafe for SourceWithCounts
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.