Struct feed_rs::model::Image[][src]

pub struct Image {
    pub uri: String,
    pub title: Option<String>,
    pub link: Option<Link>,
    pub width: Option<u32>,
    pub height: Option<u32>,
    pub description: Option<String>,
}
Expand description

Represents a a link to an image.

Fields

uri: String

Link to the image

  • Atom: The URL to an image or logo
  • RSS 1 + 2: the URL of a GIF, JPEG or PNG image that represents the channel.
title: Option<String>

RSS 1 + 2: describes the image, it’s used in the ALT attribute of the HTML tag when the channel is rendered in HTML.

link: Option<Link>

RSS 1 + 2: the URL of the site, when the channel is rendered, the image is a link to the site.

width: Option<u32>

RSS 2 (optional): width of the image

height: Option<u32>

RSS 2 (optional): height of the image

description: Option<String>

RSS 2 (optional): contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.

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.