pub struct MediaContent {Show 15 fields
pub url: Url,
pub content_type: Option<MimeType>,
pub medium: Option<String>,
pub filesize: Option<String>,
pub width: Option<String>,
pub height: Option<String>,
pub duration: Option<String>,
pub bitrate: Option<String>,
pub lang: Option<String>,
pub channels: Option<String>,
pub codec: Option<String>,
pub expression: Option<String>,
pub isdefault: Option<String>,
pub samplingrate: Option<String>,
pub framerate: Option<String>,
}Expand description
Media RSS content
Fields§
§url: UrlMedia URL
§Security Warning
This URL comes from untrusted feed input and has NOT been validated for SSRF. Applications MUST validate URLs before fetching to prevent SSRF attacks.
content_type: Option<MimeType>MIME type
medium: Option<String>Medium type: “image”, “video”, “audio”, “document”, “executable”
filesize: Option<String>File size in bytes (raw string value, as in Python feedparser)
width: Option<String>Media width in pixels (raw string value, as in Python feedparser)
height: Option<String>Media height in pixels (raw string value, as in Python feedparser)
duration: Option<String>Duration in seconds (raw string value, as in Python feedparser)
bitrate: Option<String>Bitrate in kilobits per second (raw string value)
lang: Option<String>Language of the media (lang attribute)
channels: Option<String>Number of audio channels (raw string value)
codec: Option<String>Codec used to produce the media (codec attribute)
expression: Option<String>Expression type: “full”, “sample”, “nonstop”
isdefault: Option<String>Whether this is the default media object (isDefault attribute, raw string)
samplingrate: Option<String>Sampling rate in kHz (raw string value)
framerate: Option<String>Frame rate in frames per second (raw string value)
Trait Implementations§
Source§impl Clone for MediaContent
impl Clone for MediaContent
Source§fn clone(&self) -> MediaContent
fn clone(&self) -> MediaContent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more