Struct feed_rs::model::MediaContent
source · pub struct MediaContent {
pub url: Option<Url>,
pub content_type: Option<Mime>,
pub height: Option<u32>,
pub width: Option<u32>,
pub duration: Option<Duration>,
pub size: Option<u64>,
pub rating: Option<MediaRating>,
}
Expand description
Represents a “media:content” item from the RSS Media spec
Fields§
§url: Option<Url>
The direct URL
content_type: Option<Mime>
Standard MIME type
height: Option<u32>
Height and width
width: Option<u32>
§duration: Option<Duration>
Duration the media plays
size: Option<u64>
Size of media in bytes
rating: Option<MediaRating>
Rating
Trait Implementations§
source§impl Clone for MediaContent
impl Clone for MediaContent
source§fn clone(&self) -> MediaContent
fn clone(&self) -> MediaContent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MediaContent
impl Debug for MediaContent
source§impl PartialEq for MediaContent
impl PartialEq for MediaContent
source§fn eq(&self, other: &MediaContent) -> bool
fn eq(&self, other: &MediaContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MediaContent
impl StructuralEq for MediaContent
impl StructuralPartialEq for MediaContent
Auto Trait Implementations§
impl RefUnwindSafe for MediaContent
impl Send for MediaContent
impl Sync for MediaContent
impl Unpin for MediaContent
impl UnwindSafe for MediaContent
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