pub struct State {
pub messages: u64,
pub bytes: u64,
pub first_sequence: u64,
pub first_timestamp: OffsetDateTime,
pub last_sequence: u64,
pub last_timestamp: OffsetDateTime,
pub consumer_count: usize,
pub subjects_count: u64,
pub deleted_count: Option<u64>,
pub deleted: Option<Vec<u64>>,
/* private fields */
}
Expand description
information about the given stream.
Fields§
§messages: u64
The number of messages contained in this stream
bytes: u64
The number of bytes of all messages contained in this stream
first_sequence: u64
The lowest sequence number still present in this stream
first_timestamp: OffsetDateTime
The time associated with the oldest message still present in this stream
last_sequence: u64
The last sequence number assigned to a message in this stream
last_timestamp: OffsetDateTime
The time that the last message was received by this stream
consumer_count: usize
The number of consumers configured to consume this stream
subjects_count: u64
The number of subjects in the stream
deleted_count: Option<u64>
The number of deleted messages in the stream
deleted: Option<Vec<u64>>
The list of deleted subjects from the Stream. This field will be filled only if [StreamInfoBuilder::with_deleted] option is set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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