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.