#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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§impl Debug for MediaRating
impl Debug for MediaRating
Source§impl Default for MediaRating
impl Default for MediaRating
impl Eq for MediaRating
Source§impl PartialEq for MediaRating
impl PartialEq for MediaRating
impl StructuralPartialEq for MediaRating
Auto Trait Implementations§
impl Forget for MediaRating
impl Freeze for MediaRating
impl Move for MediaRating
impl RefUnwindSafe for MediaRating
impl Send for MediaRatingwhere
RawVecInner: Send,
impl Sync for MediaRatingwhere
RawVecInner: Sync,
impl Unpin for MediaRating
impl UnsafeUnpin for MediaRating
impl UnwindSafe for MediaRatingwhere
RawVecInner: UnwindSafe,
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