pub struct JobSchedulerHandler { /* private fields */ }
Expand description
Job scheduler handler
Implementations§
Source§impl JobSchedulerHandler
impl JobSchedulerHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn list(&self) -> Result<Vec<ScheduledJob>>
pub async fn list(&self) -> Result<Vec<ScheduledJob>>
List all scheduled jobs
Sourcepub async fn get(&self, job_id: &str) -> Result<ScheduledJob>
pub async fn get(&self, job_id: &str) -> Result<ScheduledJob>
Get specific scheduled job
Sourcepub async fn create(
&self,
request: CreateScheduledJobRequest,
) -> Result<ScheduledJob>
pub async fn create( &self, request: CreateScheduledJobRequest, ) -> Result<ScheduledJob>
Create a new scheduled job
Sourcepub async fn update(
&self,
job_id: &str,
request: CreateScheduledJobRequest,
) -> Result<ScheduledJob>
pub async fn update( &self, job_id: &str, request: CreateScheduledJobRequest, ) -> Result<ScheduledJob>
Update a scheduled job
Sourcepub async fn trigger(&self, job_id: &str) -> Result<JobExecution>
pub async fn trigger(&self, job_id: &str) -> Result<JobExecution>
Trigger job execution
Sourcepub async fn history(&self, job_id: &str) -> Result<Vec<JobExecution>>
pub async fn history(&self, job_id: &str) -> Result<Vec<JobExecution>>
Get job execution history
Sourcepub async fn update_all(&self, body: Value) -> Result<Vec<ScheduledJob>>
pub async fn update_all(&self, body: Value) -> Result<Vec<ScheduledJob>>
Update job scheduler globally - PUT /v1/job_scheduler
Auto Trait Implementations§
impl Freeze for JobSchedulerHandler
impl !RefUnwindSafe for JobSchedulerHandler
impl Send for JobSchedulerHandler
impl Sync for JobSchedulerHandler
impl Unpin for JobSchedulerHandler
impl !UnwindSafe for JobSchedulerHandler
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