#[non_exhaustive]pub struct ResponseInputMessage {
pub role: String,
pub content: Vec<ResponseInputMessageContent>,
}Expand description
EN: Structured input message. 中文:结构化输入消息。
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.role: StringEN: Message role. 中文:消息角色。
content: Vec<ResponseInputMessageContent>EN: Message content. 中文:消息内容。
Trait Implementations§
Source§impl Clone for ResponseInputMessage
impl Clone for ResponseInputMessage
Source§fn clone(&self) -> ResponseInputMessage
fn clone(&self) -> ResponseInputMessage
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 ResponseInputMessage
impl Debug for ResponseInputMessage
Source§impl PartialEq for ResponseInputMessage
impl PartialEq for ResponseInputMessage
Source§fn eq(&self, other: &ResponseInputMessage) -> bool
fn eq(&self, other: &ResponseInputMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseInputMessage
impl Serialize for ResponseInputMessage
impl StructuralPartialEq for ResponseInputMessage
Auto Trait Implementations§
impl Freeze for ResponseInputMessage
impl RefUnwindSafe for ResponseInputMessage
impl Send for ResponseInputMessage
impl Sync for ResponseInputMessage
impl Unpin for ResponseInputMessage
impl UnsafeUnpin for ResponseInputMessage
impl UnwindSafe for ResponseInputMessage
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