pub struct CreateMessageRequest {
pub role: String,
pub content: CreateMessageRequest_Content,
pub attachments: Option<Vec<CreateMessageRequest_Attachments>>,
pub metadata: Option<Metadata>,
}
Fields§
§role: String
The role of the entity that is creating the message.
content: CreateMessageRequest_Content
§attachments: Option<Vec<CreateMessageRequest_Attachments>>
A list of files attached to the message, and the tools they should be added to.
metadata: Option<Metadata>
Trait Implementations§
Source§impl Clone for CreateMessageRequest
impl Clone for CreateMessageRequest
Source§fn clone(&self) -> CreateMessageRequest
fn clone(&self) -> CreateMessageRequest
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CreateMessageRequest
impl RefUnwindSafe for CreateMessageRequest
impl Send for CreateMessageRequest
impl Sync for CreateMessageRequest
impl Unpin for CreateMessageRequest
impl UnwindSafe for CreateMessageRequest
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