[][src]Struct feed_rs::model::Link

pub struct Link {
    pub href: String,
    pub rel: Option<String>,
    pub media_type: Option<String>,
    pub href_lang: Option<String>,
    pub title: Option<String>,
    pub length: Option<u64>,
}

Represents a link to an associated resource for the feed or entry.

Fields

href: String

Link to additional content

rel: Option<String>

A single link relationship type.

media_type: Option<String>

Indicates the media type of the resource.

href_lang: Option<String>

Indicates the language of the referenced resource.

title: Option<String>

Human readable information about the link, typically for display purposes.

length: Option<u64>

The length of the resource, in bytes.

Methods

impl Link[src]

pub fn new(href: String) -> Link[src]

Trait Implementations

impl Debug for Link[src]

impl PartialEq<Link> for Link[src]

impl StructuralPartialEq for Link[src]

Auto Trait Implementations

impl RefUnwindSafe for Link

impl Send for Link

impl Sync for Link

impl Unpin for Link

impl UnwindSafe for Link

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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]