pub struct SubtitleStreamInfoBuilder { /* private fields */ }Expand description
Builder for constructing SubtitleStreamInfo.
Implementations§
Source§impl SubtitleStreamInfoBuilder
impl SubtitleStreamInfoBuilder
Sourcepub fn index(self, index: u32) -> SubtitleStreamInfoBuilder
pub fn index(self, index: u32) -> SubtitleStreamInfoBuilder
Sets the stream index.
Sourcepub fn codec(self, codec: SubtitleCodec) -> SubtitleStreamInfoBuilder
pub fn codec(self, codec: SubtitleCodec) -> SubtitleStreamInfoBuilder
Sets the subtitle codec.
Sourcepub fn codec_name(self, name: impl Into<String>) -> SubtitleStreamInfoBuilder
pub fn codec_name(self, name: impl Into<String>) -> SubtitleStreamInfoBuilder
Sets the codec name string.
Sourcepub fn language(self, lang: impl Into<String>) -> SubtitleStreamInfoBuilder
pub fn language(self, lang: impl Into<String>) -> SubtitleStreamInfoBuilder
Sets the language code.
Sourcepub fn title(self, title: impl Into<String>) -> SubtitleStreamInfoBuilder
pub fn title(self, title: impl Into<String>) -> SubtitleStreamInfoBuilder
Sets the stream title.
Sourcepub fn duration(self, duration: Duration) -> SubtitleStreamInfoBuilder
pub fn duration(self, duration: Duration) -> SubtitleStreamInfoBuilder
Sets the stream duration.
Sourcepub fn forced(self, forced: bool) -> SubtitleStreamInfoBuilder
pub fn forced(self, forced: bool) -> SubtitleStreamInfoBuilder
Sets the forced flag.
Sourcepub fn build(self) -> SubtitleStreamInfo
pub fn build(self) -> SubtitleStreamInfo
Builds the SubtitleStreamInfo.
Trait Implementations§
Source§impl Clone for SubtitleStreamInfoBuilder
impl Clone for SubtitleStreamInfoBuilder
Source§fn clone(&self) -> SubtitleStreamInfoBuilder
fn clone(&self) -> SubtitleStreamInfoBuilder
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 SubtitleStreamInfoBuilder
impl Debug for SubtitleStreamInfoBuilder
Source§impl Default for SubtitleStreamInfoBuilder
impl Default for SubtitleStreamInfoBuilder
Source§fn default() -> SubtitleStreamInfoBuilder
fn default() -> SubtitleStreamInfoBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SubtitleStreamInfoBuilder
impl RefUnwindSafe for SubtitleStreamInfoBuilder
impl Send for SubtitleStreamInfoBuilder
impl Sync for SubtitleStreamInfoBuilder
impl Unpin for SubtitleStreamInfoBuilder
impl UnsafeUnpin for SubtitleStreamInfoBuilder
impl UnwindSafe for SubtitleStreamInfoBuilder
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