pub struct Settings {Show 23 fields
pub podcasts: PodcastSettings,
pub subtitles: SubtitleSettings,
pub artwork: ArtworkMode,
pub keybindings: Keybindings,
pub mouse: bool,
pub theme: Theme,
pub recording_min_free_mb: u64,
pub auto_sync_days: u16,
pub resume: ResumeMode,
pub language: Option<String>,
pub api_url: Option<String>,
pub mpv: String,
pub normalize_loudness: bool,
pub asiafm_metadata_patch: bool,
pub audio_device: Option<String>,
pub ffmpeg: String,
pub ffprobe: String,
pub connect_timeout_secs: u64,
pub request_timeout_secs: u64,
pub playback_timeout_secs: u64,
pub probe_timeout_secs: u64,
pub volume: u8,
pub recording_dir: Option<PathBuf>,
}Fields§
§podcasts: PodcastSettings§subtitles: SubtitleSettings§artwork: ArtworkMode§keybindings: Keybindings§mouse: bool§theme: Theme§recording_min_free_mb: u64§auto_sync_days: u16§resume: ResumeMode§language: Option<String>§api_url: Option<String>§mpv: String§normalize_loudness: bool§asiafm_metadata_patch: bool§audio_device: Option<String>§ffmpeg: String§ffprobe: String§connect_timeout_secs: u64§request_timeout_secs: u64§playback_timeout_secs: u64§probe_timeout_secs: u64§volume: u8§recording_dir: Option<PathBuf>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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 Forget for Settings
impl Freeze for Settings
impl Move for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more