Struct stac::ItemCollection
source · pub struct ItemCollection {
pub items: Vec<Item>,
pub links: Vec<Link>,
pub additional_fields: Map<String, Value>,
/* private fields */
}
Expand description
A GeoJSON FeatureCollection of items.
While not part of the STAC specification, ItemCollections are often used to store many items in a single file.
Fields§
§items: Vec<Item>
The list of Items.
The attribute is actually “features”, but we rename to “items”.
links: Vec<Link>
List of link objects to resources and related URLs.
additional_fields: Map<String, Value>
Additional fields.
Trait Implementations§
source§impl Clone for ItemCollection
impl Clone for ItemCollection
source§fn clone(&self) -> ItemCollection
fn clone(&self) -> ItemCollection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ItemCollection
impl Debug for ItemCollection
source§impl<'de> Deserialize<'de> for ItemCollection
impl<'de> Deserialize<'de> for ItemCollection
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
source§impl FromIterator<Item> for ItemCollection
impl FromIterator<Item> for ItemCollection
source§impl Href for ItemCollection
impl Href for ItemCollection
source§impl Links for ItemCollection
impl Links for ItemCollection
source§fn links_mut(&mut self) -> &mut Vec<Link>
fn links_mut(&mut self) -> &mut Vec<Link>
Returns a mutable reference to this object’s links. Read more
source§fn link(&self, rel: &str) -> Option<&Link>
fn link(&self, rel: &str) -> Option<&Link>
Returns the first link with the given rel type. Read more
source§fn iter_child_links(&self) -> Box<dyn Iterator<Item = &Link> + '_>
fn iter_child_links(&self) -> Box<dyn Iterator<Item = &Link> + '_>
Returns an iterator over this object’s child links. Read more
source§fn iter_item_links(&self) -> Box<dyn Iterator<Item = &Link> + '_>
fn iter_item_links(&self) -> Box<dyn Iterator<Item = &Link> + '_>
Returns an iterator over this object’s item links. Read more
source§impl PartialEq<ItemCollection> for ItemCollection
impl PartialEq<ItemCollection> for ItemCollection
source§fn eq(&self, other: &ItemCollection) -> bool
fn eq(&self, other: &ItemCollection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ItemCollection
impl Serialize for ItemCollection
source§impl Validate for ItemCollection
Available on crate feature jsonschema
only.
impl Validate for ItemCollection
Available on crate feature
jsonschema
only.