pub struct Link {
pub href: String,
pub rel: String,
pub media_type: Option<String>,
pub title: Option<String>,
pub extra: HashMap<String, JsonValue>,
}Expand description
Represents a STAC Link object.
See the STAC Link Object specification for details.
Fields§
§href: StringThe absolute or relative URL of the linked resource.
rel: StringThe relation type of the link (e.g., self, root, item).
media_type: Option<String>The media type of the linked resource.
title: Option<String>A human-readable title for the link.
extra: HashMap<String, JsonValue>Additional fields not part of the core specification.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
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 Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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