pub struct SubtitlePreferences {
pub mode: SubtitleMode,
pub languages: Vec<String>,
pub sdh: SdhPreference,
pub bitmap: BitmapPreference,
pub forced: ForcedPreference,
}Fields§
§mode: SubtitleMode§languages: Vec<String>ISO 639 codes in order of preference. Empty: the audio’s language.
sdh: SdhPreference§bitmap: BitmapPreferenceHow picture subtitles (PGS, VobSub, DVB) are shown when the app leaves it to the server. It has no effect on a server that does not read them as text.
forced: ForcedPreferenceForced subtitles (only the parts in another language) among a
subtitle search’s results. Playback follows mode.
Trait Implementations§
Source§impl Clone for SubtitlePreferences
impl Clone for SubtitlePreferences
Source§impl Debug for SubtitlePreferences
impl Debug for SubtitlePreferences
Source§impl Default for SubtitlePreferences
impl Default for SubtitlePreferences
Source§impl<'de> Deserialize<'de> for SubtitlePreferences
impl<'de> Deserialize<'de> for SubtitlePreferences
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
impl Eq for SubtitlePreferences
Source§impl PartialEq for SubtitlePreferences
impl PartialEq for SubtitlePreferences
Source§impl Serialize for SubtitlePreferences
impl Serialize for SubtitlePreferences
impl StructuralPartialEq for SubtitlePreferences
Auto Trait Implementations§
impl Freeze for SubtitlePreferences
impl RefUnwindSafe for SubtitlePreferences
impl Send for SubtitlePreferences
impl Sync for SubtitlePreferences
impl Unpin for SubtitlePreferences
impl UnsafeUnpin for SubtitlePreferences
impl UnwindSafe for SubtitlePreferences
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