pub struct CreateScheduledJobRequest {
pub name: String,
pub job_type: String,
pub schedule: String,
pub enabled: Option<bool>,
pub params: Option<Value>,
}
Expand description
Create scheduled job request
Fields§
§name: String
Human-readable name for the new job
job_type: String
Type of job to create (backup, cleanup, rotation, etc.)
schedule: String
Cron-style schedule expression defining when the job should run
enabled: Option<bool>
Whether the job should be enabled immediately upon creation
params: Option<Value>
Job-specific parameters and configuration
Implementations§
Source§impl CreateScheduledJobRequest
impl CreateScheduledJobRequest
Sourcepub fn builder() -> CreateScheduledJobRequestBuilder<((), (), (), (), ())>
pub fn builder() -> CreateScheduledJobRequestBuilder<((), (), (), (), ())>
Create a builder for building CreateScheduledJobRequest
.
On the builder, call .name(...)
, .job_type(...)
, .schedule(...)
, .enabled(...)
(optional), .params(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateScheduledJobRequest
.
Trait Implementations§
Source§impl Clone for CreateScheduledJobRequest
impl Clone for CreateScheduledJobRequest
Source§fn clone(&self) -> CreateScheduledJobRequest
fn clone(&self) -> CreateScheduledJobRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateScheduledJobRequest
impl Debug for CreateScheduledJobRequest
Source§impl<'de> Deserialize<'de> for CreateScheduledJobRequest
impl<'de> Deserialize<'de> for CreateScheduledJobRequest
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 CreateScheduledJobRequest
impl RefUnwindSafe for CreateScheduledJobRequest
impl Send for CreateScheduledJobRequest
impl Sync for CreateScheduledJobRequest
impl Unpin for CreateScheduledJobRequest
impl UnwindSafe for CreateScheduledJobRequest
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