Struct stac_api::Search

source ·
pub struct Search {
    pub limit: Option<u64>,
    pub bbox: Vec<f64>,
    pub datetime: Option<String>,
    pub intersects: Option<Geometry>,
    pub ids: Vec<String>,
    pub collections: Vec<String>,
    pub fields: Option<Fields>,
    pub sortby: Vec<Sortby>,
    pub filter_lang: Option<FilterLang>,
    pub filter_crs: Option<String>,
    pub filter: Map<String, Value>,
    pub query: Map<String, Value>,
}
Expand description

The core parameters for STAC search are defined by OAFeat, and STAC adds a few parameters for convenience.

Fields§

§limit: Option<u64>

The maximum number of results to return (page size).

§bbox: Vec<f64>

Requested bounding box.

§datetime: Option<String>

Single date+time, or a range (‘/’ separator), formatted to RFC 3339, section 5.6.

Use double dots .. for open date ranges.

§intersects: Option<Geometry>

Searches items by performing intersection between their geometry and provided GeoJSON geometry.

All GeoJSON geometry types must be supported.

§ids: Vec<String>

Array of Item ids to return.

§collections: Vec<String>

Array of one or more Collection IDs that each matching Item must be in.

§fields: Option<Fields>

Include/exclude fields from item collections.

§sortby: Vec<Sortby>

Fields by which to sort results.

§filter_lang: Option<FilterLang>

cql2-text or cql2-json.

If undefined, defaults to cql2-text for a GET request and cql2-json for a POST request.

§filter_crs: Option<String>

Recommended to not be passed, but server must only accept http://www.opengis.net/def/crs/OGC/1.3/CRS84 as a valid value, may reject any others

§filter: Map<String, Value>

CQL2 filter expression.

§query: Map<String, Value>

Additional filtering based on properties.

It is recommended to use the filter extension instead.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.