pub struct OrchestrationTaskFilter {
pub parent_run_id: Option<RunId>,
pub root_run_id: Option<RunId>,
pub thread_id: Option<ThreadId>,
pub node_id: Option<NodeId>,
pub status: Option<OrchestrationTaskStatus>,
pub kind: Option<String>,
pub created_after: Option<SystemTime>,
pub created_before: Option<SystemTime>,
}Expand description
Filter used when listing orchestration tasks.
Fields§
§parent_run_id: Option<RunId>Restrict to tasks under this parent run.
root_run_id: Option<RunId>Restrict to tasks under this root run.
thread_id: Option<ThreadId>Restrict to a checkpoint thread.
node_id: Option<NodeId>Restrict to a spawning graph node.
status: Option<OrchestrationTaskStatus>Restrict to tasks currently in one status.
kind: Option<String>Restrict to a task-kind discriminant label (see
OrchestrationTaskKind::as_str), for example "sub_agent".
created_after: Option<SystemTime>Restrict to tasks created at or after this instant (inclusive).
created_before: Option<SystemTime>Restrict to tasks created at or before this instant (inclusive).
Implementations§
Source§impl OrchestrationTaskFilter
impl OrchestrationTaskFilter
Sourcepub fn with_kind(self, kind: impl Into<String>) -> Self
pub fn with_kind(self, kind: impl Into<String>) -> Self
Restricts the filter to a task-kind discriminant label.
Sourcepub fn created_between(
self,
after: Option<SystemTime>,
before: Option<SystemTime>,
) -> Self
pub fn created_between( self, after: Option<SystemTime>, before: Option<SystemTime>, ) -> Self
Restricts the filter to a created-at window (inclusive bounds).
Sourcepub fn matches(&self, record: &OrchestrationTaskRecord) -> bool
pub fn matches(&self, record: &OrchestrationTaskRecord) -> bool
Returns true when record matches every configured filter field.
Trait Implementations§
Source§impl Clone for OrchestrationTaskFilter
impl Clone for OrchestrationTaskFilter
Source§fn clone(&self) -> OrchestrationTaskFilter
fn clone(&self) -> OrchestrationTaskFilter
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 OrchestrationTaskFilter
impl Debug for OrchestrationTaskFilter
Source§impl Default for OrchestrationTaskFilter
impl Default for OrchestrationTaskFilter
Source§fn default() -> OrchestrationTaskFilter
fn default() -> OrchestrationTaskFilter
Returns the “default value” for a type. Read more
impl Eq for OrchestrationTaskFilter
Source§impl PartialEq for OrchestrationTaskFilter
impl PartialEq for OrchestrationTaskFilter
impl StructuralPartialEq for OrchestrationTaskFilter
Auto Trait Implementations§
impl Freeze for OrchestrationTaskFilter
impl RefUnwindSafe for OrchestrationTaskFilter
impl Send for OrchestrationTaskFilter
impl Sync for OrchestrationTaskFilter
impl Unpin for OrchestrationTaskFilter
impl UnsafeUnpin for OrchestrationTaskFilter
impl UnwindSafe for OrchestrationTaskFilter
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