Struct stac_api::Collections

source ·
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

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Collections

source§

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

source§

fn from(collections: Vec<Collection>) -> Collections

Converts to this type from the input type.
source§

impl Href for Collections

source§

fn href(&self) -> Option<&str>

Gets this object’s href. Read more
source§

fn set_href(&mut self, href: impl ToString)

Sets this object’s href. Read more
source§

fn clear_href(&mut self)

Clears this object’s href. Read more
Returns a reference to this object’s links. Read more
Returns a mutable reference to this object’s links. Read more
Returns the first link with the given rel type. Read more
Sets a link of the given rel type. Read more
Returns this object’s root link. Read more
Returns this object’s self link. Read more
Returns this object’s parent link. Read more
Returns an iterator over this object’s child links. Read more
Returns an iterator over this object’s item links. Read more
Makes all relative links absolute with respect to this object’s href. Read more
Makes all absolute links relative with respect to an href. Read more
Removes all relative links. Read more
Removes all structural links. Read more
source§

impl Serialize for Collections

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromJson for T

source§

fn from_json_path(path: impl AsRef<Path>) -> Result<Self, Error>

Reads JSON data from a file. Read more
source§

fn from_json_slice(slice: &[u8]) -> Result<Self, Error>

Creates an object from JSON bytes. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToJson for T
where T: Serialize,

source§

fn to_json_path( &self, path: impl AsRef<Path>, pretty: bool, ) -> Result<(), Error>

Writes a value to a path as JSON. Read more
source§

fn to_json_writer(&self, writer: impl Write, pretty: bool) -> Result<(), Error>

Writes a value as JSON. Read more
source§

fn to_json_vec(&self, pretty: bool) -> Result<Vec<u8>, Error>

Writes a value as JSON bytes. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,