#[non_exhaustive]pub struct ChatKitWorkflowParam {
pub id: String,
pub version: Option<String>,
pub state_variables: Option<Value>,
pub tracing: Option<Value>,
}Expand description
EN: Workflow reference and overrides for a ChatKit session. 中文:ChatKit session 的 workflow 引用和覆盖。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringEN: Workflow identifier. 中文:workflow 标识符。
version: Option<String>EN: Specific workflow version to run. 中文:要运行的特定 workflow 版本。
state_variables: Option<Value>EN: State variables forwarded to the workflow. 中文:转发给 workflow 的状态变量。
tracing: Option<Value>EN: Optional tracing overrides. 中文:可选 tracing 覆盖。
Implementations§
Source§impl ChatKitWorkflowParam
impl ChatKitWorkflowParam
Sourcepub fn new(id: impl Into<String>) -> Self
pub fn new(id: impl Into<String>) -> Self
EN: Creates a workflow reference with the required id. 中文:使用必需的 id 创建 workflow 引用。
Sourcepub fn version(self, version: impl Into<String>) -> Self
pub fn version(self, version: impl Into<String>) -> Self
EN: Sets the workflow version. 中文:设置 workflow 版本。
Sourcepub fn state_variables(self, state_variables: Value) -> Self
pub fn state_variables(self, state_variables: Value) -> Self
EN: Sets state variables forwarded to the workflow. 中文:设置转发给 workflow 的状态变量。
Trait Implementations§
Source§impl Clone for ChatKitWorkflowParam
impl Clone for ChatKitWorkflowParam
Source§fn clone(&self) -> ChatKitWorkflowParam
fn clone(&self) -> ChatKitWorkflowParam
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 ChatKitWorkflowParam
impl Debug for ChatKitWorkflowParam
Source§impl PartialEq for ChatKitWorkflowParam
impl PartialEq for ChatKitWorkflowParam
Source§fn eq(&self, other: &ChatKitWorkflowParam) -> bool
fn eq(&self, other: &ChatKitWorkflowParam) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChatKitWorkflowParam
impl Serialize for ChatKitWorkflowParam
impl StructuralPartialEq for ChatKitWorkflowParam
Auto Trait Implementations§
impl Freeze for ChatKitWorkflowParam
impl RefUnwindSafe for ChatKitWorkflowParam
impl Send for ChatKitWorkflowParam
impl Sync for ChatKitWorkflowParam
impl Unpin for ChatKitWorkflowParam
impl UnsafeUnpin for ChatKitWorkflowParam
impl UnwindSafe for ChatKitWorkflowParam
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