#[repr(C)]pub struct CrispasrChatMessage {
pub role: *const c_char,
pub content: *const c_char,
}Expand description
One turn of a conversation. role is “system”, “user”, “assistant” or
“tool”; both pointers must stay valid for the duration of the call.
Fields§
§role: *const c_char§content: *const c_charTrait Implementations§
Source§impl Clone for CrispasrChatMessage
impl Clone for CrispasrChatMessage
Source§fn clone(&self) -> CrispasrChatMessage
fn clone(&self) -> CrispasrChatMessage
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 moreimpl Copy for CrispasrChatMessage
Auto Trait Implementations§
impl !Send for CrispasrChatMessage
impl !Sync for CrispasrChatMessage
impl Freeze for CrispasrChatMessage
impl RefUnwindSafe for CrispasrChatMessage
impl Unpin for CrispasrChatMessage
impl UnsafeUnpin for CrispasrChatMessage
impl UnwindSafe for CrispasrChatMessage
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