pub struct AggregationMetadata {
pub source_count: u32,
pub excluded_count: u32,
pub aggregation_method: String,
pub performed_at: Option<Timestamp>,
pub oldest_source: Option<Timestamp>,
pub newest_source: Option<Timestamp>,
}Expand description
Aggregation metadata
Provides context about how an aggregation was performed. Useful for debugging and understanding data staleness.
Fields§
§source_count: u32Number of source documents aggregated
excluded_count: u32Number of sources excluded (e.g., non-operational nodes)
aggregation_method: StringAggregation method used
performed_at: Option<Timestamp>Timestamp when aggregation was performed
oldest_source: Option<Timestamp>Oldest source document timestamp (for staleness detection)
newest_source: Option<Timestamp>Newest source document timestamp
Trait Implementations§
Source§impl Clone for AggregationMetadata
impl Clone for AggregationMetadata
Source§fn clone(&self) -> AggregationMetadata
fn clone(&self) -> AggregationMetadata
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 AggregationMetadata
impl Debug for AggregationMetadata
Source§impl Default for AggregationMetadata
impl Default for AggregationMetadata
Source§impl<'de> Deserialize<'de> for AggregationMetadata
impl<'de> Deserialize<'de> for AggregationMetadata
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 Message for AggregationMetadata
impl Message for AggregationMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AggregationMetadata
impl PartialEq for AggregationMetadata
Source§fn eq(&self, other: &AggregationMetadata) -> bool
fn eq(&self, other: &AggregationMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AggregationMetadata
impl Serialize for AggregationMetadata
impl StructuralPartialEq for AggregationMetadata
Auto Trait Implementations§
impl Freeze for AggregationMetadata
impl RefUnwindSafe for AggregationMetadata
impl Send for AggregationMetadata
impl Sync for AggregationMetadata
impl Unpin for AggregationMetadata
impl UnsafeUnpin for AggregationMetadata
impl UnwindSafe for AggregationMetadata
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