//! Broker-assigned monotonic offset for delivered events.
usechrono::{DateTime, Utc};/// Monotonically increasing position within a topic. The broker assigns
/// `value` at publish time; `committed_at` is the UTC instant the backing
/// transaction committed.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]pubstructOffset{value:u64,
committed_at:DateTime<Utc>,
}implOffset{pubconstfnnew(value:u64, committed_at:DateTime<Utc>)->Self{Self{
value,
committed_at,}}pubconstfnvalue(&self)->u64{self.value
}pubconstfncommitted_at(&self)->DateTime<Utc>{self.committed_at
}}