#[non_exhaustive]pub struct ListProtestsOptions {Show 19 fields
pub page: Option<u32>,
pub limit: Option<u32>,
pub cursor: Option<String>,
pub shape: Option<String>,
pub flat: bool,
pub flat_lists: bool,
pub source_system: Option<String>,
pub outcome: Option<String>,
pub case_type: Option<String>,
pub agency: Option<String>,
pub case_number: Option<String>,
pub solicitation_number: Option<String>,
pub protester: Option<String>,
pub search: Option<String>,
pub filed_date_after: Option<String>,
pub filed_date_before: Option<String>,
pub decision_date_after: Option<String>,
pub decision_date_before: Option<String>,
pub extra: BTreeMap<String, String>,
}Expand description
Options for Client::list_protests and Client::iterate_protests.
Mirrors the Go SDK’s ListProtestsOptions. The protests viewset does not
accept server-side ordering — passing it returns 400 — so there’s no
ordering field. The _after / _before date suffixes mirror the
Python SDK’s naming.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page: Option<u32>1-based page number.
limit: Option<u32>Page size (server caps at 100).
cursor: Option<String>Keyset cursor.
shape: Option<String>Comma-separated field selector. Use
SHAPE_PROTESTS_MINIMAL or roll your own.
flat: boolCollapse nested objects into dot-separated keys.
flat_lists: boolWhen flat is also true, flatten list-valued fields.
source_system: Option<String>Source system filter ("GAO" or "COFC").
outcome: Option<String>Outcome label ("sustained", "denied", …).
case_type: Option<String>Case type filter.
agency: Option<String>Agency filter (CGAC code or name, depending on source system).
case_number: Option<String>Source-system case number filter.
solicitation_number: Option<String>Solicitation number filter.
protester: Option<String>Protester name filter.
search: Option<String>Free-text search filter.
filed_date_after: Option<String>Lower bound on filed_date (ISO YYYY-MM-DD, inclusive).
filed_date_before: Option<String>Upper bound on filed_date (inclusive).
decision_date_after: Option<String>Lower bound on decision_date (inclusive).
decision_date_before: Option<String>Upper bound on decision_date (inclusive).
extra: BTreeMap<String, String>Escape hatch for filter keys not yet first-classed on this struct.
Implementations§
Source§impl ListProtestsOptions
impl ListProtestsOptions
Sourcepub fn builder() -> ListProtestsOptionsBuilder
pub fn builder() -> ListProtestsOptionsBuilder
Create an instance of ListProtestsOptions using the builder syntax
Trait Implementations§
Source§impl Clone for ListProtestsOptions
impl Clone for ListProtestsOptions
Source§fn clone(&self) -> ListProtestsOptions
fn clone(&self) -> ListProtestsOptions
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 ListProtestsOptions
impl Debug for ListProtestsOptions
Source§impl Default for ListProtestsOptions
impl Default for ListProtestsOptions
Source§fn default() -> ListProtestsOptions
fn default() -> ListProtestsOptions
Source§impl PartialEq for ListProtestsOptions
impl PartialEq for ListProtestsOptions
Source§fn eq(&self, other: &ListProtestsOptions) -> bool
fn eq(&self, other: &ListProtestsOptions) -> bool
self and other values to be equal, and is used by ==.