pub struct EventQuery {
pub since_ms: Option<u64>,
pub until_ms: Option<u64>,
pub member_id: Option<String>,
pub identity: Option<String>,
pub mob_id: Option<String>,
pub run_id: Option<String>,
pub step_id: Option<String>,
pub event_types: Vec<String>,
pub limit: Option<usize>,
pub after_seq: Option<u64>,
}Expand description
Query parameters for historical event retrieval.
after_seq IS the cursor for pagination. Stores that surface a
monotonic sequence (PersistedEvent::seq, MobStructuralEventEnvelope::cursor)
MUST treat it as an exclusive lower bound and return events with
seq > after_seq. Callers paginate by passing the last-seen seq as
after_seq on the next query.
Fields§
§since_ms: Option<u64>Only events after this timestamp (inclusive).
until_ms: Option<u64>Only events before this timestamp (exclusive).
member_id: Option<String>Filter to events from a specific member/agent.
identity: Option<String>Filter to events from a specific identity when the store supports identity-native rows.
mob_id: Option<String>Filter to events from a specific mob (structural event surface).
run_id: Option<String>Filter to events scoped to a specific flow run.
step_id: Option<String>Filter to events scoped to a specific flow step.
event_types: Vec<String>Filter to specific event types (e.g. “run_completed”, “run_failed”).
limit: Option<usize>Maximum number of events to return.
after_seq: Option<u64>Resume after this sequence number (exclusive; the cursor for pagination).
Trait Implementations§
Source§impl Clone for EventQuery
impl Clone for EventQuery
Source§fn clone(&self) -> EventQuery
fn clone(&self) -> EventQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventQuery
impl Debug for EventQuery
Source§impl Default for EventQuery
impl Default for EventQuery
Source§fn default() -> EventQuery
fn default() -> EventQuery
Source§impl<'de> Deserialize<'de> for EventQuery
impl<'de> Deserialize<'de> for EventQuery
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>,
Auto Trait Implementations§
impl Freeze for EventQuery
impl RefUnwindSafe for EventQuery
impl Send for EventQuery
impl Sync for EventQuery
impl Unpin for EventQuery
impl UnsafeUnpin for EventQuery
impl UnwindSafe for EventQuery
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
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>
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>
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