pub struct Collections {
pub collections: Vec<Collection>,
pub links: Vec<Link>,
pub additional_fields: Map<String, Value>,
/* private fields */
}
Expand description
Object containing an array of collections and an array of links.
Fields§
§collections: Vec<Collection>
The Collection objects in the stac::Catalog.
links: Vec<Link>
The stac::Link relations.
additional_fields: Map<String, Value>
Additional fields.
Trait Implementations§
Source§impl Debug for Collections
impl Debug for Collections
Source§impl<'de> Deserialize<'de> for Collections
impl<'de> Deserialize<'de> for Collections
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<Vec<Collection>> for Collections
impl From<Vec<Collection>> for Collections
Source§fn from(collections: Vec<Collection>) -> Collections
fn from(collections: Vec<Collection>) -> Collections
Converts to this type from the input type.
Source§impl Links for Collections
impl Links for Collections
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_links_absolute(&mut self) -> Result<(), Error>
fn make_links_absolute(&mut self) -> Result<(), Error>
Makes all relative links absolute with respect to this object’s self href.
Source§fn make_links_relative(&mut self) -> Result<(), Error>
fn make_links_relative(&mut self) -> Result<(), Error>
Makes all links relative with respect to this object’s self href.
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 SelfHref for Collections
impl SelfHref for Collections
Auto Trait Implementations§
impl Freeze for Collections
impl RefUnwindSafe for Collections
impl Send for Collections
impl Sync for Collections
impl Unpin for Collections
impl UnwindSafe for Collections
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> FromJson for Twhere
T: DeserializeOwned + SelfHref,
impl<T> FromJson for Twhere
T: DeserializeOwned + SelfHref,
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