pub struct ResponseInputMessageItem {
pub id: String,
pub content: ResponseInputMessageContentList,
pub role: ResponseInputMessageItemRole,
pub status: Option<ResponseInputMessageItemStatus>,
pub type_: Option<String>,
}Fields§
§id: StringThe unique ID of the message input.
content: ResponseInputMessageContentListA list of one or many input items to the model, containing different content
role: ResponseInputMessageItemRoleThe role of the message input. One of user, system, or developer.
status: Option<ResponseInputMessageItemStatus>The status of item.
type_: Option<String>The type of the message input. Always set to message.
Trait Implementations§
Source§impl Clone for ResponseInputMessageItem
impl Clone for ResponseInputMessageItem
Source§fn clone(&self) -> ResponseInputMessageItem
fn clone(&self) -> ResponseInputMessageItem
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 ResponseInputMessageItem
impl Debug for ResponseInputMessageItem
Source§impl<'de> Deserialize<'de> for ResponseInputMessageItem
impl<'de> Deserialize<'de> for ResponseInputMessageItem
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 ResponseInputMessageItem
impl RefUnwindSafe for ResponseInputMessageItem
impl Send for ResponseInputMessageItem
impl Sync for ResponseInputMessageItem
impl Unpin for ResponseInputMessageItem
impl UnsafeUnpin for ResponseInputMessageItem
impl UnwindSafe for ResponseInputMessageItem
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