pub struct Items {
pub limit: Option<u64>,
pub bbox: Option<Vec<f64>>,
pub datetime: Option<String>,
pub fields: Option<Fields>,
pub sortby: Option<Vec<Sortby>>,
pub filter_crs: Option<String>,
pub filter: Option<Filter>,
pub query: Option<Map<String, Value>>,
pub additional_fields: Map<String, Value>,
}
Expand description
Parameters for the items endpoint from STAC API - Features.
This is a lot like Search, but without intersects, ids, and collections.
Fields§
§limit: Option<u64>
The maximum number of results to return (page size).
bbox: Option<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.
fields: Option<Fields>
Include/exclude fields from item collections.
sortby: Option<Vec<Sortby>>
Fields by which to sort results.
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: Option<Filter>
CQL2 filter expression.
query: Option<Map<String, Value>>
Additional filtering based on properties.
It is recommended to use the filter extension instead.
additional_fields: Map<String, Value>
Additional fields.
Implementations§
source§impl Items
impl Items
sourcepub fn into_search(self, collection_id: impl ToString) -> Search
pub fn into_search(self, collection_id: impl ToString) -> Search
Converts this items object to a search in the given collection.
Examples
use stac_api::Items;
let items = Items {
datetime: Some("2023".to_string()),
..Default::default()
};
let search = items.into_search("collection-id");
assert_eq!(search.collections.unwrap(), vec!["collection-id"]);
Trait Implementations§
source§impl<'de> Deserialize<'de> for Items
impl<'de> Deserialize<'de> for Items
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Items
impl Send for Items
impl Sync for Items
impl Unpin for Items
impl UnwindSafe for Items
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more