pub struct EntityLink {
pub class: Vec<String>,
pub title: Option<String>,
pub rel: Vec<String>,
pub href: String,
pub _type: Option<String>,
}Fields§
§class: Vec<String>Describes the nature of an entity’s content based on the current representation. Possible values are implementation-dependent and should be documented. MUST be an array of strings. Optional.
title: Option<String>Descriptive text about the entity. Optional.
rel: Vec<String>Defines the relationship of the sub-entity to its parent, per Web Linking (RFC5988) and Link Relations. MUST be a non-empty array of strings. Required.
href: StringThe URI of the linked sub-entity. Required.
_type: Option<String>Defines media type of the linked sub-entity, per Web Linking (RFC5988). Optional.
Trait Implementations§
Source§impl Debug for EntityLink
impl Debug for EntityLink
Source§impl<'de> Deserialize<'de> for EntityLink
impl<'de> Deserialize<'de> for EntityLink
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 EntityLink
impl RefUnwindSafe for EntityLink
impl Send for EntityLink
impl Sync for EntityLink
impl Unpin for EntityLink
impl UnwindSafe for EntityLink
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