pub struct MediaContent {
pub url: Option<Url>,
pub content_type: Option<MediaTypeBuf>,
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<MediaTypeBuf>
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
impl Eq for MediaContent
impl StructuralPartialEq for MediaContent
Auto Trait Implementations§
impl Freeze for MediaContent
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
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
)