pub struct ThreadRealtimeAppendTextParams {
pub role: ConversationTextRole,
pub text: String,
pub thread_id: String,
}Expand description
EXPERIMENTAL - append text input to thread realtime.
JSON schema
{
"title": "ThreadRealtimeAppendTextParams",
"description": "EXPERIMENTAL - append text input to thread realtime.",
"type": "object",
"required": [
"text",
"threadId"
],
"properties": {
"role": {
"default": "user",
"allOf": [
{
"$ref": "#/definitions/ConversationTextRole"
}
]
},
"text": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}Fields§
§role: ConversationTextRole§text: String§thread_id: StringTrait Implementations§
Source§impl Clone for ThreadRealtimeAppendTextParams
impl Clone for ThreadRealtimeAppendTextParams
Source§fn clone(&self) -> ThreadRealtimeAppendTextParams
fn clone(&self) -> ThreadRealtimeAppendTextParams
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<'de> Deserialize<'de> for ThreadRealtimeAppendTextParams
impl<'de> Deserialize<'de> for ThreadRealtimeAppendTextParams
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
Auto Trait Implementations§
impl Freeze for ThreadRealtimeAppendTextParams
impl RefUnwindSafe for ThreadRealtimeAppendTextParams
impl Send for ThreadRealtimeAppendTextParams
impl Sync for ThreadRealtimeAppendTextParams
impl Unpin for ThreadRealtimeAppendTextParams
impl UnsafeUnpin for ThreadRealtimeAppendTextParams
impl UnwindSafe for ThreadRealtimeAppendTextParams
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