pub struct AsyncChatTaskResult {
pub id: Option<String>,
pub request_id: Option<String>,
pub created: Option<u64>,
pub task_status: Option<TaskStatus>,
pub model: Option<String>,
pub choices: Option<Vec<Choice>>,
pub usage: Option<Usage>,
pub web_search: Option<Vec<WebSearchInfo>>,
pub content_filter: Option<Vec<ContentFilterInfo>>,
}Expand description
A completed asynchronous chat-completion result.
Fields§
§id: Option<String>Task identifier.
request_id: Option<String>Request identifier.
created: Option<u64>Creation time as a Unix timestamp in seconds.
task_status: Option<TaskStatus>Current task status, when returned with the completion payload.
One of PROCESSING / SUCCESS / FAIL; a successful completion
typically carries SUCCESS alongside choices and usage.
model: Option<String>Model that generated the response.
choices: Option<Vec<Choice>>Generated choices.
usage: Option<Usage>Token usage statistics.
web_search: Option<Vec<WebSearchInfo>>Web-search sources used by the response.
content_filter: Option<Vec<ContentFilterInfo>>Content-safety classifications.
Implementations§
Trait Implementations§
Source§impl Clone for AsyncChatTaskResult
impl Clone for AsyncChatTaskResult
Source§fn clone(&self) -> AsyncChatTaskResult
fn clone(&self) -> AsyncChatTaskResult
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 AsyncChatTaskResult
impl Debug for AsyncChatTaskResult
Source§impl<'de> Deserialize<'de> for AsyncChatTaskResult
impl<'de> Deserialize<'de> for AsyncChatTaskResult
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 AsyncChatTaskResult
impl RefUnwindSafe for AsyncChatTaskResult
impl Send for AsyncChatTaskResult
impl Sync for AsyncChatTaskResult
impl Unpin for AsyncChatTaskResult
impl UnsafeUnpin for AsyncChatTaskResult
impl UnwindSafe for AsyncChatTaskResult
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