pub struct GeneralConfig {Show 16 fields
pub listen_addr: String,
pub port: u16,
pub api_key: Option<String>,
pub incomplete_dir: PathBuf,
pub complete_dir: PathBuf,
pub data_dir: PathBuf,
pub speed_limit_bps: u64,
pub cache_size: u64,
pub log_level: String,
pub log_file: Option<PathBuf>,
pub history_retention: Option<usize>,
pub max_active_downloads: usize,
pub min_free_space_bytes: u64,
pub watch_dir: Option<PathBuf>,
pub rss_history_limit: Option<usize>,
pub direct_unpack: bool,
}Fields§
§listen_addr: StringHTTP API listen address
port: u16HTTP API port
api_key: Option<String>API key for authentication
incomplete_dir: PathBufDirectory for incomplete downloads
complete_dir: PathBufDirectory for completed downloads
data_dir: PathBufDirectory for application data (DB, logs)
speed_limit_bps: u64Download speed limit in bytes/sec (0 = unlimited)
cache_size: u64Article cache size in bytes
log_level: StringLog level
log_file: Option<PathBuf>Log file path (None = stdout only)
history_retention: Option<usize>History retention: how many NZBs to keep in history (None = keep all)
max_active_downloads: usizeMax number of NZBs downloading simultaneously (default 1)
min_free_space_bytes: u64Minimum free disk space in bytes before pausing downloads (default 1 GB)
watch_dir: Option<PathBuf>Directory to watch for new .nzb files to auto-enqueue
rss_history_limit: Option<usize>RSS feed history limit: how many feed items to keep (None = keep all, default 500)
direct_unpack: boolBegin extracting RAR volumes during download instead of waiting for the
job to complete. Requires unrar on PATH. Falls back to normal
post-processing if articles fail or unrar is unavailable.
Trait Implementations§
Source§impl Clone for GeneralConfig
impl Clone for GeneralConfig
Source§fn clone(&self) -> GeneralConfig
fn clone(&self) -> GeneralConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneralConfig
impl Debug for GeneralConfig
Source§impl Default for GeneralConfig
impl Default for GeneralConfig
Source§impl<'de> Deserialize<'de> for GeneralConfigwhere
GeneralConfig: Default,
impl<'de> Deserialize<'de> for GeneralConfigwhere
GeneralConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for GeneralConfig
impl RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnsafeUnpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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