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 From<ItemCollection> for Value
impl From<ItemCollection> for Value
source§fn from(item_collection: ItemCollection) -> Self
fn from(item_collection: ItemCollection) -> Self
Converts to this type from the input type.
source§impl FromIterator<Item> for ItemCollection
impl FromIterator<Item> for ItemCollection
source§impl Href for ItemCollection
impl Href for ItemCollection
source§impl IntoIterator for ItemCollection
impl IntoIterator 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§fn make_relative_links_absolute(&mut self, href: impl ToString) -> Result<()>
fn make_relative_links_absolute(&mut self, href: impl ToString) -> Result<()>
Makes all relative links absolute with respect to an href. Read more
source§fn make_absolute_links_relative(&mut self, href: impl ToString) -> Result<()>
fn make_absolute_links_relative(&mut self, href: impl ToString) -> Result<()>
Makes all absolute links relative with respect to an href. Read more
source§fn remove_relative_links(&mut self)
fn remove_relative_links(&mut self)
Removes all relative links. Read more
source§fn remove_structural_links(&mut self)
fn remove_structural_links(&mut self)
Removes all structural links. Read more
source§impl Migrate for ItemCollection
impl Migrate for ItemCollection
source§impl PartialEq for ItemCollection
impl PartialEq for ItemCollection
source§impl Serialize for ItemCollection
impl Serialize for ItemCollection
impl StructuralPartialEq for ItemCollection
Auto Trait Implementations§
impl Freeze for ItemCollection
impl RefUnwindSafe for ItemCollection
impl Send for ItemCollection
impl Sync for ItemCollection
impl Unpin for ItemCollection
impl UnwindSafe for ItemCollection
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more