pub struct ChatCompletionRequestUserMessage {
pub content: ChatCompletionRequestUserMessage_Content,
pub role: String,
pub name: String,
}Expand description
Messages sent by an end user, containing prompts or additional context information.
Fields§
§content: ChatCompletionRequestUserMessage_Content§role: StringThe role of the messages author, in this case user.
name: StringAn optional name for the participant.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestUserMessage
impl Clone for ChatCompletionRequestUserMessage
Source§fn clone(&self) -> ChatCompletionRequestUserMessage
fn clone(&self) -> ChatCompletionRequestUserMessage
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 ChatCompletionRequestUserMessage
impl RefUnwindSafe for ChatCompletionRequestUserMessage
impl Send for ChatCompletionRequestUserMessage
impl Sync for ChatCompletionRequestUserMessage
impl Unpin for ChatCompletionRequestUserMessage
impl UnwindSafe for ChatCompletionRequestUserMessage
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