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§
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)