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

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

Represents a a link to an image.

Fields

uri: String

Link to the image

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.

Methods

impl Image[src]

pub fn new(uri: String) -> Image[src]

Trait Implementations

impl Debug for Image[src]

impl PartialEq<Image> for Image[src]

impl StructuralPartialEq for Image[src]

Auto Trait Implementations

impl RefUnwindSafe for Image

impl Send for Image

impl Sync for Image

impl Unpin for Image

impl UnwindSafe for Image

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]