pub struct EventQuery {
pub category: Option<EventCategory>,
pub min_severity: Option<EventSeverity>,
pub workflow_id: Option<String>,
pub subject_name: Option<String>,
pub subject_kind: Option<EventSubjectKind>,
pub since: Option<DateTime<Utc>>,
pub limit: Option<usize>,
}Expand description
Flexible event query for filtering and pagination.
All fields are optional. When None, no filtering is applied for that
dimension. Combine fields to narrow results (they are ANDed together).
Fields§
§category: Option<EventCategory>Filter by event category.
min_severity: Option<EventSeverity>Filter to events at or above this severity.
workflow_id: Option<String>Filter by workflow identifier.
subject_name: Option<String>Filter by subject name.
subject_kind: Option<EventSubjectKind>Filter by subject kind.
since: Option<DateTime<Utc>>Only include events at or after this timestamp.
limit: Option<usize>Maximum number of events to return.
Trait Implementations§
Source§impl Clone for EventQuery
impl Clone for EventQuery
Source§fn clone(&self) -> EventQuery
fn clone(&self) -> EventQuery
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 EventQuery
impl Debug for EventQuery
Source§impl Default for EventQuery
impl Default for EventQuery
Source§fn default() -> EventQuery
fn default() -> EventQuery
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more