pub struct Message {
pub content: ResponseInputMessageContentList,
pub role: MessageRole,
pub status: Option<MessageStatus>,
pub type_: Option<String>,
}Expand description
A message input to the model with a role indicating instruction following
Fields§
§content: ResponseInputMessageContentListA list of one or many input items to the model, containing different content
role: MessageRoleThe role of the message input. One of user, system, or developer.
status: Option<MessageStatus>The status of item.
type_: Option<String>The type of the message input. Always set to message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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