#[non_exhaustive]pub struct ListOpportunitiesOptions {Show 26 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 active: Option<bool>,
pub awarded: Option<bool>,
pub awardee_uei: Option<String>,
pub agency: Option<String>,
pub first_notice_date_after: Option<String>,
pub first_notice_date_before: Option<String>,
pub last_notice_date_after: Option<String>,
pub last_notice_date_before: Option<String>,
pub naics: Option<String>,
pub notice_type: Option<String>,
pub ordering: Option<String>,
pub place_of_performance: Option<String>,
pub psc: Option<String>,
pub response_deadline_after: Option<String>,
pub response_deadline_before: Option<String>,
pub search: Option<String>,
pub set_aside: Option<String>,
pub solicitation_number: Option<String>,
pub opportunity_id: Option<String>,
pub extra: BTreeMap<String, String>,
}Expand description
Options for Client::list_opportunities and
Client::iterate_opportunities. Mirrors ListOpportunitiesOptions
in the Go SDK.
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.
flat: boolCollapse nested objects into dot-separated keys.
flat_lists: boolWhen flat is also true, flatten list-valued fields.
active: Option<bool>Tri-state: Some(true)/Some(false) to filter; None to omit.
awarded: Option<bool>Whether the opportunity has an award, either posted on it or linked to it from a separate award notice (Tango API 5.5.0). Searches every opportunity rather than only active ones, so pair it with active to narrow to open opportunities. Some(false) reaches the server as a filter value.
awardee_uei: Option<String>The awardee’s UEI, case-insensitive; OR several with | (Tango API 5.5.0). Searches every opportunity rather than only active ones.
agency: Option<String>Awarding agency CGAC code.
first_notice_date_after: Option<String>Lower bound for first-notice date (inclusive, ISO YYYY-MM-DD).
first_notice_date_before: Option<String>Upper bound for first-notice date (inclusive).
last_notice_date_after: Option<String>Lower bound for last-notice date (inclusive).
last_notice_date_before: Option<String>Upper bound for last-notice date (inclusive).
naics: Option<String>NAICS code filter.
notice_type: Option<String>Notice-type filter (e.g. "PRESOL").
ordering: Option<String>Server-side sort spec (prefix with - for descending).
place_of_performance: Option<String>Place of performance filter (state code, etc.).
psc: Option<String>PSC code filter.
response_deadline_after: Option<String>Lower bound for response deadline.
response_deadline_before: Option<String>Upper bound for response deadline.
search: Option<String>Free-text search filter.
set_aside: Option<String>Set-aside filter.
solicitation_number: Option<String>Solicitation number filter.
opportunity_id: Option<String>Opportunity ID filter.
extra: BTreeMap<String, String>Escape hatch for filter keys not yet first-classed on this struct.
Implementations§
Source§impl ListOpportunitiesOptions
impl ListOpportunitiesOptions
Sourcepub fn builder() -> ListOpportunitiesOptionsBuilder
pub fn builder() -> ListOpportunitiesOptionsBuilder
Create an instance of ListOpportunitiesOptions using the builder syntax