pub struct Opts {
pub check_path: bool,
pub max_retries: i32,
pub default_timer_wait: u64,
pub cleanup_days: u64,
pub log_file: Option<PathBuf>,
}
Fields§
§check_path: bool
Check if the path exists before processing (default: false)
max_retries: i32
Maximum retries before giving up (default: 5)
default_timer_wait: u64
Default timer wait time (default: 60)
cleanup_days: u64
Cleanup events older than x days (default: 10)
log_file: Option<PathBuf>
Log file path
Trait Implementations§
source§impl<'de> Deserialize<'de> for Opts
impl<'de> Deserialize<'de> for Opts
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 Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)