pub struct SubtitleStyle {
pub font_family: Option<String>,
pub font_size: Option<u16>,
pub color: Option<String>,
pub background: Option<String>,
pub bold: bool,
pub italic: bool,
pub position: SubtitlePosition,
}Expand description
Subtitle visual style.
Fields§
§font_family: Option<String>Font family name.
font_size: Option<u16>Font size in points.
color: Option<String>Text color (CSS format, e.g., “#FFFFFF”).
background: Option<String>Background color.
bold: boolWhether text is bold.
italic: boolWhether text is italic.
position: SubtitlePositionWhere to position the subtitle.
Trait Implementations§
Source§impl Clone for SubtitleStyle
impl Clone for SubtitleStyle
Source§fn clone(&self) -> SubtitleStyle
fn clone(&self) -> SubtitleStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubtitleStyle
impl Debug for SubtitleStyle
Source§impl<'de> Deserialize<'de> for SubtitleStyle
impl<'de> Deserialize<'de> for SubtitleStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubtitleStyle
impl RefUnwindSafe for SubtitleStyle
impl Send for SubtitleStyle
impl Sync for SubtitleStyle
impl Unpin for SubtitleStyle
impl UnsafeUnpin for SubtitleStyle
impl UnwindSafe for SubtitleStyle
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