pub struct Asset {
pub href: String,
pub title: Option<String>,
pub description: Option<String>,
pub media_type: Option<String>,
pub roles: Option<Vec<String>>,
pub extra: HashMap<String, JsonValue>,
}Expand description
Represents a STAC Asset object, which is a link to a resource.
See the STAC Asset Object specification for details.
Fields§
§href: StringThe URL of the asset.
title: Option<String>A human-readable title for the asset.
description: Option<String>A description of the asset.
media_type: Option<String>The media type of the asset.
roles: Option<Vec<String>>The semantic roles of the asset (e.g., thumbnail, overview).
extra: HashMap<String, JsonValue>Additional fields not part of the core specification.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Asset
impl<'de> Deserialize<'de> for Asset
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 Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
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