pub struct TaskFilter {
pub owner: Option<String>,
pub statuses: Option<Vec<TaskStatus>>,
}Expand description
Filter for listing tasks from a task store (P1-1).
Used by A2AServer::handle_tasks_list and the store’s list method to
scope results by owner and/or status.
Fields§
§owner: Option<String>Only include tasks owned by this caller (None = no owner filter).
statuses: Option<Vec<TaskStatus>>Only include tasks in these statuses (None = all statuses).
Implementations§
Source§impl TaskFilter
impl TaskFilter
Sourcepub fn with_owner(self, owner: impl Into<String>) -> Self
pub fn with_owner(self, owner: impl Into<String>) -> Self
Restrict to tasks owned by owner.
Sourcepub fn with_statuses(self, statuses: Vec<TaskStatus>) -> Self
pub fn with_statuses(self, statuses: Vec<TaskStatus>) -> Self
Restrict to tasks in the given statuses.
Trait Implementations§
Source§impl Clone for TaskFilter
impl Clone for TaskFilter
Source§fn clone(&self) -> TaskFilter
fn clone(&self) -> TaskFilter
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 TaskFilter
impl Debug for TaskFilter
Source§impl Default for TaskFilter
impl Default for TaskFilter
Source§fn default() -> TaskFilter
fn default() -> TaskFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TaskFilter
impl RefUnwindSafe for TaskFilter
impl Send for TaskFilter
impl Sync for TaskFilter
impl Unpin for TaskFilter
impl UnsafeUnpin for TaskFilter
impl UnwindSafe for TaskFilter
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