pub struct DreamStatusPayload {
pub last_run_at: Option<DateTime<Utc>>,
pub merged: usize,
pub pruned: usize,
pub compacted: usize,
pub closets_updated: usize,
pub duration_ms: u64,
}Expand description
Dream statistics wire shape used by both per-palace and aggregate endpoints.
Why: Lifted out of web.rs so the service layer owns the type the chat
dispatcher and HTTP handlers both serialise. Stays identical to the
pre-refactor shape.
What: All fields are saturating sums across one or more palaces; the
last_run_at is the max across them (or None when no palace has run).
Test: dream_status_aggregates_across_palaces, dream_run_aggregates_stats.
Fields§
§last_run_at: Option<DateTime<Utc>>§merged: usize§pruned: usize§compacted: usize§closets_updated: usize§duration_ms: u64Trait Implementations§
Source§impl Clone for DreamStatusPayload
impl Clone for DreamStatusPayload
Source§fn clone(&self) -> DreamStatusPayload
fn clone(&self) -> DreamStatusPayload
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 DreamStatusPayload
impl Debug for DreamStatusPayload
Source§impl Default for DreamStatusPayload
impl Default for DreamStatusPayload
Source§fn default() -> DreamStatusPayload
fn default() -> DreamStatusPayload
Returns the “default value” for a type. Read more
Source§impl From<PersistedDreamStats> for DreamStatusPayload
impl From<PersistedDreamStats> for DreamStatusPayload
Source§fn from(p: PersistedDreamStats) -> Self
fn from(p: PersistedDreamStats) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DreamStatusPayload
impl RefUnwindSafe for DreamStatusPayload
impl Send for DreamStatusPayload
impl Sync for DreamStatusPayload
impl Unpin for DreamStatusPayload
impl UnsafeUnpin for DreamStatusPayload
impl UnwindSafe for DreamStatusPayload
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more