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

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>,
}
Expand description

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

Fields

href: String

Link to additional content

  • Atom: The URI of the referenced resource (typically a Web page).
  • RSS 2: The URL to the HTML website corresponding to the channel or item.
  • JSON Feed: the URI to the attachment, feed etc
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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.