Skip to main content

ListSledOpportunitiesOptions

Struct ListSledOpportunitiesOptions 

Source
#[non_exhaustive]
pub struct ListSledOpportunitiesOptions {
Show 36 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 state: Option<String>, pub jurisdiction: Option<String>, pub status: Option<String>, pub active: Option<bool>, pub agency: Option<String>, pub solicitation_number: Option<String>, pub solicitation_type: Option<String>, pub has_documents: Option<bool>, pub revision_kind: Option<String>, pub naics: Option<String>, pub nigp: Option<String>, pub unspsc: Option<String>, pub category: Option<String>, pub category_code: Option<String>, pub posted_after: Option<String>, pub posted_before: Option<String>, pub response_deadline_after: Option<String>, pub response_deadline_before: Option<String>, pub first_seen_after: Option<String>, pub first_seen_before: Option<String>, pub change_seen_after: Option<String>, pub modified_after: Option<String>, pub modified_before: Option<String>, pub platform: Option<String>, pub native_id: Option<String>, pub external_id: Option<String>, pub search: Option<String>, pub ordering: Option<String>, pub verbose: Option<bool>, pub extra: BTreeMap<String, String>,
}
Expand description

Options for Client::list_sled_opportunities and Client::iterate_sled_opportunities.

Two things behave unlike the federal endpoints.

Leaving both status and active unset returns open solicitations only — the API defaults the list to status=open, because only about a fifth of the corpus is open and portals drop a closed solicitation rather than restating it. Set status explicitly to page the whole corpus. Client::get_sled_opportunity returns a solicitation whatever its status.

status is Tango-derived liveness, refreshed every fifteen minutes. The portal’s own word is served as source_status, is frozen at last capture, and is not filterable — most of what it calls open already has a passed deadline.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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_SLED_OPPORTUNITIES_MINIMAL or roll your own.

§flat: bool

Collapse nested objects into dot-separated keys.

§flat_lists: bool

When flat is also true, flatten list-valued fields.

§state: Option<String>

Two-letter state or territory code. Multi-value: "TX|OK".

§jurisdiction: Option<String>

Level of government: "state", "local", "education", or "unknown" for the aggregator rows that cannot tell state from local.

§status: Option<String>

"open", "closed", "awarded", "cancelled" or "unknown". With active also unset the API returns open only; "unknown" (standing rosters, dateless RFIs) is hidden by that default and reachable with "open|unknown".

§active: Option<bool>

Sugar for federal-shaped callers: true is status=open, false is its complement (so it includes unknown). Option<bool> so that false is a real filter value rather than an absent one.

§agency: Option<String>

Substring match on the buyer’s published text (min 2 characters). No code resolution behind it — state agencies have no entry in the federal organization tree.

§solicitation_number: Option<String>

The number a human would quote. Null on roughly a third of the corpus, where the portal publishes none.

§solicitation_type: Option<String>

"rfp", "ifb", "rfq", "rfi", "itb", "sole_source", "grant" or "other". "null" (the portal states no type) is a distinct answer from "other" (a type the vocabulary does not recognize).

§has_documents: Option<bool>

Whether the solicitation advertises at least one document.

§revision_kind: Option<String>

Kind of the most recent substantive revision: "deadline_change", "status_change", "documents_added", "documents_removed", "documents_replaced", "title_change" or "content_change".

§naics: Option<String>

Exact match within the naics category scheme only. Thin on purpose: scheme tagging is mid-migration, so only a small share of entries are tagged NAICS. Prefer category_code unless you need scheme precision.

§nigp: Option<String>

Exact match within the nigp scheme, the most widely tagged of the four.

§unspsc: Option<String>

Exact match within the unspsc scheme.

§category: Option<String>

Exact match within the text scheme, where the code is the portal’s own human label.

§category_code: Option<String>

Match a code under ANY scheme, including the untagged pre-migration strings. The escape hatch when a scheme-specific filter returns less than you expected.

§posted_after: Option<String>

Lower bound on posted_date (ISO YYYY-MM-DD, inclusive).

§posted_before: Option<String>

Upper bound on posted_date (inclusive).

§response_deadline_after: Option<String>

Lower bound on response_deadline (inclusive).

§response_deadline_before: Option<String>

Upper bound on response_deadline (inclusive).

§first_seen_after: Option<String>

Lower bound on when Tango FIRST OBSERVED the solicitation. The polling primitive: everything new since your last call.

§first_seen_before: Option<String>

Upper bound on first observation (inclusive).

§change_seen_after: Option<String>

Lower bound on when Tango OBSERVED the last substantive change. A scrape date, not an amendment date: a state portal restates one page in place and publishes no amendment date, so the resolution is that state’s crawl cadence. The API exposes no upper bound on this field.

§modified_after: Option<String>

Lower bound on when the Tango row last changed (inclusive).

§modified_before: Option<String>

Upper bound on when the Tango row last changed (inclusive).

§platform: Option<String>

Support filter identifying the source portal’s platform family. In no response shape, and not a stable value.

§native_id: Option<String>

Support filter — the portal’s own identifier.

§external_id: Option<String>

Support filter — Tango’s opaque lake key. At most 500 values.

§search: Option<String>

Ranked full-text search over title, agency, identifiers, category labels and description, widened by the solicitations whose ATTACHMENT text matched (min 2 characters). A row that matched on its description gains a snippet field; a title-or-agency match carries none.

§ordering: Option<String>

One of rank, response_deadline, posted_date, first_seen_at, last_seen_at, last_change_seen_at, modified. rank requires a non-empty search.

§verbose: Option<bool>

When Some(true), add description and contact to each list row. description is detail-only by default because its longest values run past 120,000 characters.

§extra: BTreeMap<String, String>

Escape hatch for filter keys not yet first-classed on this struct.

Implementations§

Source§

impl ListSledOpportunitiesOptions

Source

pub fn builder() -> ListSledOpportunitiesOptionsBuilder

Create an instance of ListSledOpportunitiesOptions using the builder syntax

Trait Implementations§

Source§

impl Clone for ListSledOpportunitiesOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ListSledOpportunitiesOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListSledOpportunitiesOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ListSledOpportunitiesOptions

Source§

impl PartialEq for ListSledOpportunitiesOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ListSledOpportunitiesOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more