pub struct ScheduleClient { /* private fields */ }Expand description
Client for a specific schedule.
Implementations§
Source§impl ScheduleClient
impl ScheduleClient
Sourcepub async fn get(&self) -> ApifyClientResult<Option<Schedule>>
pub async fn get(&self) -> ApifyClientResult<Option<Schedule>>
Fetches the schedule, or None if it does not exist.
Sourcepub async fn update<T: Serialize>(
&self,
new_fields: &T,
) -> ApifyClientResult<Schedule>
pub async fn update<T: Serialize>( &self, new_fields: &T, ) -> ApifyClientResult<Schedule>
Updates the schedule with the given fields.
Sourcepub async fn delete(&self) -> ApifyClientResult<()>
pub async fn delete(&self) -> ApifyClientResult<()>
Deletes the schedule.
Sourcepub async fn get_log(&self) -> ApifyClientResult<Option<String>>
pub async fn get_log(&self) -> ApifyClientResult<Option<String>>
Fetches the schedule’s invocation log as text, or None if not available.
Trait Implementations§
Source§impl Clone for ScheduleClient
impl Clone for ScheduleClient
Source§fn clone(&self) -> ScheduleClient
fn clone(&self) -> ScheduleClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ScheduleClient
impl !UnwindSafe for ScheduleClient
impl Freeze for ScheduleClient
impl Send for ScheduleClient
impl Sync for ScheduleClient
impl Unpin for ScheduleClient
impl UnsafeUnpin for ScheduleClient
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