pub struct MessageCreateRequest {
pub role: Role,
pub content: String,
}Expand description
Request body for creating a message.
Fields§
§role: Role§content: StringTrait Implementations§
Source§impl Clone for MessageCreateRequest
impl Clone for MessageCreateRequest
Source§fn clone(&self) -> MessageCreateRequest
fn clone(&self) -> MessageCreateRequest
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 MessageCreateRequest
impl Debug for MessageCreateRequest
Auto Trait Implementations§
impl Freeze for MessageCreateRequest
impl RefUnwindSafe for MessageCreateRequest
impl Send for MessageCreateRequest
impl Sync for MessageCreateRequest
impl Unpin for MessageCreateRequest
impl UnsafeUnpin for MessageCreateRequest
impl UnwindSafe for MessageCreateRequest
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