#[non_exhaustive]pub struct ResponseOutputMessage {
pub id: String,
pub role: String,
pub content: Vec<ResponseContent>,
}Expand description
EN: Assistant message output item. 中文:助手消息输出项。
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: Output item id. 中文:输出项 ID。
role: StringEN: Message role. 中文:消息角色。
content: Vec<ResponseContent>EN: Message content. 中文:消息内容。
Trait Implementations§
Source§impl Clone for ResponseOutputMessage
impl Clone for ResponseOutputMessage
Source§fn clone(&self) -> ResponseOutputMessage
fn clone(&self) -> ResponseOutputMessage
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 ResponseOutputMessage
impl Debug for ResponseOutputMessage
Source§impl<'de> Deserialize<'de> for ResponseOutputMessage
impl<'de> Deserialize<'de> for ResponseOutputMessage
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 ResponseOutputMessage
impl PartialEq for ResponseOutputMessage
Source§fn eq(&self, other: &ResponseOutputMessage) -> bool
fn eq(&self, other: &ResponseOutputMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseOutputMessage
impl Serialize for ResponseOutputMessage
impl StructuralPartialEq for ResponseOutputMessage
Auto Trait Implementations§
impl Freeze for ResponseOutputMessage
impl RefUnwindSafe for ResponseOutputMessage
impl Send for ResponseOutputMessage
impl Sync for ResponseOutputMessage
impl Unpin for ResponseOutputMessage
impl UnsafeUnpin for ResponseOutputMessage
impl UnwindSafe for ResponseOutputMessage
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