pub struct CreateDelayedJobParams {
pub name: String,
pub run_at: String,
pub url: String,
pub method: Option<String>,
pub headers: Option<Value>,
pub body: Option<String>,
}Expand description
Parameters for DelayedJobsClient::create.
§Example
use nautilus_rs::{Clockwork, CreateDelayedJobParams};
let clockwork = Clockwork::new("vrn_clockwork_live_sk_…");
let job = clockwork.delayed().create(CreateDelayedJobParams {
name: "send-reminder".into(),
run_at: "2026-01-01T12:00:00Z".into(),
url: "https://example.com/hooks/reminder".into(),
..Default::default()
}).await?;Fields§
§name: StringHuman-readable name for the job.
run_at: StringISO 8601 timestamp at which to run the job.
url: StringURL to invoke when the job runs.
method: Option<String>HTTP method used for the request (server default applies when None).
headers: Option<Value>Optional headers sent with the request.
body: Option<String>Optional request body sent with the run.
Trait Implementations§
Source§impl Clone for CreateDelayedJobParams
impl Clone for CreateDelayedJobParams
Source§fn clone(&self) -> CreateDelayedJobParams
fn clone(&self) -> CreateDelayedJobParams
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 moreSource§impl Debug for CreateDelayedJobParams
impl Debug for CreateDelayedJobParams
Source§impl Default for CreateDelayedJobParams
impl Default for CreateDelayedJobParams
Source§fn default() -> CreateDelayedJobParams
fn default() -> CreateDelayedJobParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateDelayedJobParams
impl RefUnwindSafe for CreateDelayedJobParams
impl Send for CreateDelayedJobParams
impl Sync for CreateDelayedJobParams
impl Unpin for CreateDelayedJobParams
impl UnsafeUnpin for CreateDelayedJobParams
impl UnwindSafe for CreateDelayedJobParams
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