pub struct ResponseOutputMessage {
pub id: String,
pub content: Vec<ResponseOutputContentPart>,
pub role: Option<String>,
pub status: Option<String>,
pub phase: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 assistant message 输出。
Fields§
§id: Stringmessage ID。
content: Vec<ResponseOutputContentPart>内容片段。
role: Option<String>角色。
status: Option<String>状态。
phase: Option<String>assistant phase。
extra: BTreeMap<String, Value>额外字段。
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 · 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 Default for ResponseOutputMessage
impl Default for ResponseOutputMessage
Source§fn default() -> ResponseOutputMessage
fn default() -> ResponseOutputMessage
Returns the “default value” for a type. Read more
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
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