#[non_exhaustive]pub struct StreamSummary {
pub stream_id: String,
pub is_terminal: bool,
pub next_id: u64,
pub last_write_unix_ms: u64,
}Expand description
Per-stream summary derived from KvResumeBuffer. Returned by GET /streams.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stream_id: StringStream identifier (the KvResumeBuffer bucket key).
is_terminal: booltrue once the stream has emitted its terminal event.
next_id: u64Next event id to be assigned — a proxy for total events recorded.
last_write_unix_ms: u64Unix milliseconds of the most recent buffer write.
Trait Implementations§
Source§impl Clone for StreamSummary
impl Clone for StreamSummary
Source§fn clone(&self) -> StreamSummary
fn clone(&self) -> StreamSummary
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 StreamSummary
impl Debug for StreamSummary
Auto Trait Implementations§
impl Freeze for StreamSummary
impl RefUnwindSafe for StreamSummary
impl Send for StreamSummary
impl Sync for StreamSummary
impl Unpin for StreamSummary
impl UnsafeUnpin for StreamSummary
impl UnwindSafe for StreamSummary
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