[][src]Struct siren_types::EntityLink

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: String

The 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

impl Debug for EntityLink[src]

impl<'de> Deserialize<'de> for EntityLink[src]

impl Serialize for EntityLink[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.