pub struct SelfTestConfig {
pub enabled: bool,
pub schedule: Option<String>,
pub interval: Option<String>,
pub workers: SelfTestWorkers,
pub on_failure: SelfTestFailureAction,
pub retry_count: u32,
pub retry_delay: String,
}Expand description
Self-test scheduling and behavior configuration.
Fields§
§enabled: boolEnable scheduled self-tests.
schedule: Option<String>Cron schedule (e.g., “0 3 * * *”).
interval: Option<String>Interval duration (e.g., “24h”).
workers: SelfTestWorkersWhich workers to test (default: “all”).
on_failure: SelfTestFailureActionAction on failure.
retry_count: u32Retry count for failed tests.
retry_delay: StringDelay between retries.
Trait Implementations§
Source§impl Clone for SelfTestConfig
impl Clone for SelfTestConfig
Source§fn clone(&self) -> SelfTestConfig
fn clone(&self) -> SelfTestConfig
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 SelfTestConfig
impl Debug for SelfTestConfig
Source§impl Default for SelfTestConfig
impl Default for SelfTestConfig
Source§impl<'de> Deserialize<'de> for SelfTestConfig
impl<'de> Deserialize<'de> for SelfTestConfig
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 SelfTestConfig
impl RefUnwindSafe for SelfTestConfig
impl Send for SelfTestConfig
impl Sync for SelfTestConfig
impl Unpin for SelfTestConfig
impl UnsafeUnpin for SelfTestConfig
impl UnwindSafe for SelfTestConfig
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