#[non_exhaustive]pub struct SubtitleRenditionDecl {
pub name: String,
pub language: String,
pub uri: String,
pub default: bool,
pub autoselect: bool,
pub forced: bool,
pub hearing_impaired: bool,
}Available on crate feature
std only.Expand description
A typed declaration of one WebVTT subtitle rendition for a multivariant
playlist (RFC 8216 §4.3.4.1, Apple HLS Authoring Spec items 4.5-4.7, 5.11).
Consumed by HlsOriginBuilder::subtitle_renditions. All renditions share
the group SUBTITLES_GROUP_ID.
hearing_impaired emits the item 4.5 CHARACTERISTICS and forces
AUTOSELECT=YES (item 4.6); forced emits FORCED=YES and forces
AUTOSELECT=YES (item 5.11).
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.name: StringNAME of the rendition.
language: StringLANGUAGE (BCP 47); required (Apple HLS Authoring Spec item 4.7).
uri: StringURI of the subtitle media playlist.
default: boolDEFAULT attribute.
autoselect: boolAUTOSELECT attribute.
forced: boolFORCED attribute.
hearing_impaired: boolSubtitles for deaf or hard-of-hearing viewers.
Implementations§
Trait Implementations§
Source§impl Clone for SubtitleRenditionDecl
impl Clone for SubtitleRenditionDecl
Source§impl Debug for SubtitleRenditionDecl
impl Debug for SubtitleRenditionDecl
impl Eq for SubtitleRenditionDecl
Source§impl PartialEq for SubtitleRenditionDecl
impl PartialEq for SubtitleRenditionDecl
impl StructuralPartialEq for SubtitleRenditionDecl
Auto Trait Implementations§
impl Freeze for SubtitleRenditionDecl
impl RefUnwindSafe for SubtitleRenditionDecl
impl Send for SubtitleRenditionDecl
impl Sync for SubtitleRenditionDecl
impl Unpin for SubtitleRenditionDecl
impl UnsafeUnpin for SubtitleRenditionDecl
impl UnwindSafe for SubtitleRenditionDecl
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