pub struct MediaRating {
pub scheme: Option<String>,
pub content: String,
}Expand description
Media RSS rating element (media:rating)
Describes the permissible audience for the media content. Commonly uses the MPAA or urn:simple rating schemes.
Fields§
§scheme: Option<String>Rating scheme URI (scheme attribute), e.g. “urn:simple”, “urn:mpaa”
content: StringRating value, e.g. “adult”, “nonadult”, “pg-13”
Trait Implementations§
Source§impl Clone for MediaRating
impl Clone for MediaRating
Source§fn clone(&self) -> MediaRating
fn clone(&self) -> MediaRating
Returns a duplicate 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 MediaRating
impl Debug for MediaRating
Source§impl Default for MediaRating
impl Default for MediaRating
Source§fn default() -> MediaRating
fn default() -> MediaRating
Returns the “default value” for a type. Read more
Source§impl PartialEq for MediaRating
impl PartialEq for MediaRating
impl Eq for MediaRating
impl StructuralPartialEq for MediaRating
Auto Trait Implementations§
impl Freeze for MediaRating
impl RefUnwindSafe for MediaRating
impl Send for MediaRating
impl Sync for MediaRating
impl Unpin for MediaRating
impl UnsafeUnpin for MediaRating
impl UnwindSafe for MediaRating
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