pub struct ListFilter {
pub roots_only: bool,
pub archived: bool,
pub status: Vec<String>,
pub sprint: Option<String>,
pub assignee: Option<String>,
pub labels: Vec<String>,
pub label_match: LabelMatch,
pub search: Option<SearchFilter>,
pub stale_before: Option<DateTime<Utc>>,
}Expand description
Filters for list_items. Empty fields do not filter their corresponding property.
Multiple status specifications use OR (a PBI matches any selected status); label specifications
use LabelMatch::Any by default and can use LabelMatch::All; roots-only and other filters
are combined with AND. The assignee condition is an exact match. The stale condition matches
updated timestamps at or before its cutoff. The roots-only condition uses the item’s
persisted parent link even when that parent is excluded by another filter.
Fields§
§roots_only: boolInclude only PBIs whose persisted parent link is unset.
archived: boolRead archived PBIs instead of active PBIs.
status: Vec<String>Exact workflow statuses to match. An empty list includes every status.
sprint: Option<String>Exact assigned sprint ID to match.
assignee: Option<String>Exact assignee name to match.
labels: Vec<String>Labels to match. An empty list includes every label set.
label_match: LabelMatchMatching mode for Self::labels.
search: Option<SearchFilter>Search the item’s fields and assigned sprint metadata.
stale_before: Option<DateTime<Utc>>Match PBIs whose updated timestamp is at or before this UTC cutoff.
Trait Implementations§
Source§impl Clone for ListFilter
impl Clone for ListFilter
Source§fn clone(&self) -> ListFilter
fn clone(&self) -> ListFilter
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 ListFilter
impl Debug for ListFilter
Source§impl Default for ListFilter
impl Default for ListFilter
Source§fn default() -> ListFilter
fn default() -> ListFilter
Auto Trait Implementations§
impl Freeze for ListFilter
impl RefUnwindSafe for ListFilter
impl Send for ListFilter
impl Sync for ListFilter
impl Unpin for ListFilter
impl UnsafeUnpin for ListFilter
impl UnwindSafe for ListFilter
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> 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