pub struct CronCreate {
pub schedule: String,
pub end_time: Option<String>,
pub assistant_id: Box<CronCreateAssistantId>,
pub input: Option<Box<Input>>,
pub metadata: Option<Value>,
pub config: Option<Box<Config2>>,
pub context: Option<Value>,
pub webhook: Option<String>,
pub interrupt_before: Option<Box<InterruptBefore>>,
pub interrupt_after: Option<Box<InterruptAfter>>,
pub on_run_completed: Option<OnRunCompleted>,
}Expand description
CronCreate : Payload for creating a stateless cron job (creates a new thread for each execution).
Fields§
§schedule: StringThe cron schedule to execute this job on.
end_time: Option<String>The end date to stop running the cron.
assistant_id: Box<CronCreateAssistantId>§input: Option<Box<Input>>§metadata: Option<Value>Metadata to assign to the cron job runs.
config: Option<Box<Config2>>§context: Option<Value>Static context added to the assistant.
webhook: Option<String>Webhook to call after LangGraph API call is done.
interrupt_before: Option<Box<InterruptBefore>>§interrupt_after: Option<Box<InterruptAfter>>§on_run_completed: Option<OnRunCompleted>What to do with the thread after the run completes. ‘delete’ removes the thread after execution. ‘keep’ creates a new thread for each execution but does not clean them up.
Implementations§
Source§impl CronCreate
impl CronCreate
Sourcepub fn new(schedule: String, assistant_id: CronCreateAssistantId) -> CronCreate
pub fn new(schedule: String, assistant_id: CronCreateAssistantId) -> CronCreate
Payload for creating a stateless cron job (creates a new thread for each execution).
Trait Implementations§
Source§impl Clone for CronCreate
impl Clone for CronCreate
Source§fn clone(&self) -> CronCreate
fn clone(&self) -> CronCreate
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 moreSource§impl Debug for CronCreate
impl Debug for CronCreate
Source§impl Default for CronCreate
impl Default for CronCreate
Source§fn default() -> CronCreate
fn default() -> CronCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CronCreate
impl<'de> Deserialize<'de> for CronCreate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CronCreate
impl PartialEq for CronCreate
Source§impl Serialize for CronCreate
impl Serialize for CronCreate
impl StructuralPartialEq for CronCreate
Auto Trait Implementations§
impl Freeze for CronCreate
impl RefUnwindSafe for CronCreate
impl Send for CronCreate
impl Sync for CronCreate
impl Unpin for CronCreate
impl UnwindSafe for CronCreate
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