pub struct WorkflowParamArgs { /* private fields */ }Expand description
Builder for WorkflowParam.
Implementations§
Source§impl WorkflowParamArgs
impl WorkflowParamArgs
Sourcepub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Identifier for the workflow invoked by the session.
Sourcepub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specific workflow version to run. Defaults to the latest deployed version.
Sourcepub fn state_variables<VALUE: Into<HashMap<String, Value>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn state_variables<VALUE: Into<HashMap<String, Value>>>( &mut self, value: VALUE, ) -> &mut Self
State variables forwarded to the workflow. Keys may be up to 64 characters, values must be primitive types, and the map defaults to an empty object.
Sourcepub fn tracing<VALUE: Into<WorkflowTracingParam>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn tracing<VALUE: Into<WorkflowTracingParam>>( &mut self, value: VALUE, ) -> &mut Self
Optional tracing overrides for the workflow invocation. When omitted, tracing is enabled by default.
Sourcepub fn build(&self) -> Result<WorkflowParam, OpenAIError>
pub fn build(&self) -> Result<WorkflowParam, OpenAIError>
Trait Implementations§
Source§impl Clone for WorkflowParamArgs
impl Clone for WorkflowParamArgs
Source§fn clone(&self) -> WorkflowParamArgs
fn clone(&self) -> WorkflowParamArgs
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 WorkflowParamArgs
impl Debug for WorkflowParamArgs
Auto Trait Implementations§
impl Freeze for WorkflowParamArgs
impl RefUnwindSafe for WorkflowParamArgs
impl Send for WorkflowParamArgs
impl Sync for WorkflowParamArgs
impl Unpin for WorkflowParamArgs
impl UnwindSafe for WorkflowParamArgs
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