pub struct StatsResponse {
pub entries: u64,
pub min_timestamp: Option<String>,
pub max_timestamp: Option<String>,
pub tags: Vec<Option<String>>,
pub db_size_bytes: u64,
pub db_path: String,
}Expand description
Wire shape for GET /stats responses.
Intentionally decoupled from logdive_core::Stats so the library stays
serde-agnostic on its public output types. Renaming core fields is
then a non-breaking change for HTTP clients; conversely, the HTTP
shape can evolve without touching core.
Fields§
§entries: u64§min_timestamp: Option<String>§max_timestamp: Option<String>Distinct tag values. None (untagged) appears first when present,
then non-null tags in ascending alphabetical order — identical to
the Stats.tags contract from core. Clients presenting this to
humans can reshuffle (e.g. put null last, label it “(untagged)”)
the way the CLI does.
db_size_bytes: u64§db_path: StringTrait Implementations§
Source§impl Debug for StatsResponse
impl Debug for StatsResponse
Auto Trait Implementations§
impl Freeze for StatsResponse
impl RefUnwindSafe for StatsResponse
impl Send for StatsResponse
impl Sync for StatsResponse
impl Unpin for StatsResponse
impl UnsafeUnpin for StatsResponse
impl UnwindSafe for StatsResponse
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