pub struct Defaults {
pub run: Option<RunDefaults>,
pub retry: Option<RetryDefaults>,
pub concurrency: Option<Concurrency>,
}
Expand description
Represents default settings for jobs.
Fields§
§run: Option<RunDefaults>
Default settings for running jobs.
retry: Option<RetryDefaults>
Default retry settings for jobs.
concurrency: Option<Concurrency>
Default concurrency settings for jobs.
Implementations§
Source§impl Defaults
impl Defaults
Sourcepub fn run(self, value: impl Into<RunDefaults>) -> Self
pub fn run(self, value: impl Into<RunDefaults>) -> Self
Sets the run
field of this struct.
Sourcepub fn retry(self, value: impl Into<RetryDefaults>) -> Self
pub fn retry(self, value: impl Into<RetryDefaults>) -> Self
Sets the retry
field of this struct.
Sourcepub fn concurrency(self, value: impl Into<Concurrency>) -> Self
pub fn concurrency(self, value: impl Into<Concurrency>) -> Self
Sets the concurrency
field of this struct.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Defaults
impl<'de> Deserialize<'de> for Defaults
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 Defaults
impl RefUnwindSafe for Defaults
impl Send for Defaults
impl Sync for Defaults
impl Unpin for Defaults
impl UnwindSafe for Defaults
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