pub struct MessageExample {
pub user: String,
pub assistant: String,
}Expand description
A single few-shot example pair.
Fields§
§user: StringUser message.
assistant: StringExpected assistant response.
Trait Implementations§
Source§impl Clone for MessageExample
impl Clone for MessageExample
Source§fn clone(&self) -> MessageExample
fn clone(&self) -> MessageExample
Returns a duplicate 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 moreSource§impl Debug for MessageExample
impl Debug for MessageExample
Source§impl<'de> Deserialize<'de> for MessageExample
impl<'de> Deserialize<'de> for MessageExample
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 MessageExample
impl RefUnwindSafe for MessageExample
impl Send for MessageExample
impl Sync for MessageExample
impl Unpin for MessageExample
impl UnsafeUnpin for MessageExample
impl UnwindSafe for MessageExample
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