pub struct CronResource { /* private fields */ }Expand description
Operations on the Cron Tasks API. Obtain via [LlmrixClient::cron].
Implementations§
Source§impl CronResource
impl CronResource
Sourcepub async fn create(&self, req: CronCreateRequest) -> Result<CronTask>
pub async fn create(&self, req: CronCreateRequest) -> Result<CronTask>
Create a new cron task.
Sourcepub async fn get(&self, task_id: &str) -> Result<CronTask>
pub async fn get(&self, task_id: &str) -> Result<CronTask>
Retrieve a single cron task by its UUID.
Auto Trait Implementations§
impl !RefUnwindSafe for CronResource
impl !UnwindSafe for CronResource
impl Freeze for CronResource
impl Send for CronResource
impl Sync for CronResource
impl Unpin for CronResource
impl UnsafeUnpin for CronResource
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