pub struct SchedulesClient { /* private fields */ }Expand description
Client for managing scheduled (one-time) workflow runs. Accessed via Hatchet::schedules.
Requires a token with a sub (tenant ID) claim.
Implementations§
Source§impl SchedulesClient
impl SchedulesClient
Sourcepub async fn create(
&self,
workflow_name: &str,
opts: CreateScheduleOpts,
) -> Result<ScheduledRun, HatchetError>
pub async fn create( &self, workflow_name: &str, opts: CreateScheduleOpts, ) -> Result<ScheduledRun, HatchetError>
Schedule a workflow to run at a specific future time.
Sourcepub async fn get(
&self,
scheduled_id: &str,
) -> Result<ScheduledRun, HatchetError>
pub async fn get( &self, scheduled_id: &str, ) -> Result<ScheduledRun, HatchetError>
Retrieve a scheduled run by ID.
Sourcepub async fn list(
&self,
opts: ListSchedulesOpts,
) -> Result<ScheduledRunList, HatchetError>
pub async fn list( &self, opts: ListSchedulesOpts, ) -> Result<ScheduledRunList, HatchetError>
List scheduled runs, optionally filtered by workflow, status, or metadata.
Trait Implementations§
Source§impl Clone for SchedulesClient
impl Clone for SchedulesClient
Source§fn clone(&self) -> SchedulesClient
fn clone(&self) -> SchedulesClient
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 moreAuto Trait Implementations§
impl Freeze for SchedulesClient
impl !RefUnwindSafe for SchedulesClient
impl Send for SchedulesClient
impl Sync for SchedulesClient
impl Unpin for SchedulesClient
impl UnsafeUnpin for SchedulesClient
impl !UnwindSafe for SchedulesClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request