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: StringLink 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
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more