#[non_exhaustive]pub struct ListGrantsOptions {Show 20 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 agency: Option<String>,
pub applicant_types: Option<String>,
pub cfda_number: Option<String>,
pub funding_categories: Option<String>,
pub funding_instruments: Option<String>,
pub opportunity_number: Option<String>,
pub ordering: Option<String>,
pub posted_date_after: Option<String>,
pub posted_date_before: Option<String>,
pub response_date_after: Option<String>,
pub response_date_before: Option<String>,
pub search: Option<String>,
pub status: Option<String>,
pub extra: BTreeMap<String, String>,
}Expand description
Options for Client::list_grants and Client::iterate_grants.
Mirrors ListGrantsOptions 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.
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.
agency: Option<String>Awarding agency filter.
applicant_types: Option<String>Applicant-types filter (CSV of grants.gov codes).
cfda_number: Option<String>CFDA number filter.
funding_categories: Option<String>Funding-categories filter (CSV).
funding_instruments: Option<String>Funding-instruments filter (CSV).
opportunity_number: Option<String>Opportunity number filter.
ordering: Option<String>Server-side sort spec.
posted_date_after: Option<String>Lower bound for posted date.
posted_date_before: Option<String>Upper bound for posted date.
response_date_after: Option<String>Lower bound for response date.
response_date_before: Option<String>Upper bound for response date.
search: Option<String>Free-text search filter.
status: Option<String>Status filter (e.g. "posted").
extra: BTreeMap<String, String>Escape hatch for filter keys not yet first-classed on this struct.
Implementations§
Source§impl ListGrantsOptions
impl ListGrantsOptions
Sourcepub fn builder() -> ListGrantsOptionsBuilder
pub fn builder() -> ListGrantsOptionsBuilder
Create an instance of ListGrantsOptions using the builder syntax
Trait Implementations§
Source§impl Clone for ListGrantsOptions
impl Clone for ListGrantsOptions
Source§fn clone(&self) -> ListGrantsOptions
fn clone(&self) -> ListGrantsOptions
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 ListGrantsOptions
impl Debug for ListGrantsOptions
Source§impl Default for ListGrantsOptions
impl Default for ListGrantsOptions
Source§fn default() -> ListGrantsOptions
fn default() -> ListGrantsOptions
Source§impl PartialEq for ListGrantsOptions
impl PartialEq for ListGrantsOptions
Source§fn eq(&self, other: &ListGrantsOptions) -> bool
fn eq(&self, other: &ListGrantsOptions) -> bool
self and other values to be equal, and is used by ==.