pub struct NavigationalLink {
pub rel: Vec<String>,
pub class: Vec<String>,
pub href: String,
pub title: Option<String>,
pub _type: Option<String>,
}Fields§
§rel: Vec<String>Defines the relationship of the link to its entity, per Web Linking (RFC5988) and Link Relations. MUST be an array of strings. Required.
class: Vec<String>Describes aspects of the link based on the current representation. Possible values are implementation-dependent and should be documented. MUST be an array of strings. Optional.
href: StringThe URI of the linked resource. Required.
title: Option<String>Text describing the nature of a link. Optional.
_type: Option<String>Defines media type of the linked resource, per Web Linking (RFC5988). Optional.
Implementations§
Trait Implementations§
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§
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