pub struct Item {
pub item_type: String,
pub stac_version: String,
pub id: String,
pub geometry: Option<JsonValue>,
pub bbox: Option<Vec<f64>>,
pub properties: Properties,
pub links: Vec<Link>,
pub assets: HashMap<String, Asset>,
pub collection: Option<String>,
pub extra: HashMap<String, JsonValue>,
}Expand description
Represents a STAC Item object, which is a GeoJSON Feature.
See the STAC Item Specification for details.
Fields§
§item_type: StringThe type of the object, which is always “Feature”.
stac_version: StringThe STAC version the item implements.
id: StringThe ID of the item.
geometry: Option<JsonValue>The GeoJSON geometry of the item.
bbox: Option<Vec<f64>>The bounding box of the item’s geometry.
properties: PropertiesA dictionary of metadata properties.
links: Vec<Link>A list of links to other STAC objects.
assets: HashMap<String, Asset>A map of assets, such as data files.
collection: Option<String>The ID of the collection this item belongs to.
extra: HashMap<String, JsonValue>Additional fields not part of the core specification.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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 Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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