pub struct EventsQuery {
pub since: Option<u64>,
pub limit: Option<usize>,
}Expand description
Query parameters for GET /v1/events. See module-level docs for the
semantics. serde(default) so missing fields use the defaults below
without rejecting the request — kubectl-style ergonomics.
Fields§
§since: Option<u64>Return events with seq > since. None/0 means “from the
oldest retained event” (JetStream’s DeliverPolicy::All).
limit: Option<usize>Page size; clamped to [1, MAX_LIMIT] after parsing.
Trait Implementations§
Source§impl Debug for EventsQuery
impl Debug for EventsQuery
Source§impl Default for EventsQuery
impl Default for EventsQuery
Source§fn default() -> EventsQuery
fn default() -> EventsQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventsQuery
impl<'de> Deserialize<'de> for EventsQuery
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
Auto Trait Implementations§
impl Freeze for EventsQuery
impl RefUnwindSafe for EventsQuery
impl Send for EventsQuery
impl Sync for EventsQuery
impl Unpin for EventsQuery
impl UnsafeUnpin for EventsQuery
impl UnwindSafe for EventsQuery
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