pub struct BatchStatsUpdate {
pub updates: Vec<StatUpdate>,
pub batch_id: Uuid,
pub timestamp_ms: i64,
}Expand description
Batch statistics update.
Fields§
§updates: Vec<StatUpdate>List of stat updates.
batch_id: UuidBatch ID for tracking.
timestamp_ms: i64Update timestamp (Unix milliseconds).
Implementations§
Source§impl BatchStatsUpdate
impl BatchStatsUpdate
Sourcepub fn new(updates: Vec<StatUpdate>) -> Self
pub fn new(updates: Vec<StatUpdate>) -> Self
Create a new batch stats update.
Sourcepub fn update_count(&self) -> usize
pub fn update_count(&self) -> usize
Get the number of updates in the batch.
Trait Implementations§
Source§impl Clone for BatchStatsUpdate
impl Clone for BatchStatsUpdate
Source§fn clone(&self) -> BatchStatsUpdate
fn clone(&self) -> BatchStatsUpdate
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 BatchStatsUpdate
impl Debug for BatchStatsUpdate
Source§impl<'de> Deserialize<'de> for BatchStatsUpdate
impl<'de> Deserialize<'de> for BatchStatsUpdate
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
Auto Trait Implementations§
impl Freeze for BatchStatsUpdate
impl RefUnwindSafe for BatchStatsUpdate
impl Send for BatchStatsUpdate
impl Sync for BatchStatsUpdate
impl Unpin for BatchStatsUpdate
impl UnwindSafe for BatchStatsUpdate
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