pub struct SeedMessage {
pub role: String,
pub content: String,
}Expand description
A single seed message — a minimal {role, content} pair. Roles mirror the
loop’s: system | user | assistant | tool.
Fields§
§role: String§content: StringTrait Implementations§
Source§impl Clone for SeedMessage
impl Clone for SeedMessage
Source§fn clone(&self) -> SeedMessage
fn clone(&self) -> SeedMessage
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 SeedMessage
impl Debug for SeedMessage
Source§impl<'de> Deserialize<'de> for SeedMessage
impl<'de> Deserialize<'de> for SeedMessage
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 SeedMessage
impl RefUnwindSafe for SeedMessage
impl Send for SeedMessage
impl Sync for SeedMessage
impl Unpin for SeedMessage
impl UnsafeUnpin for SeedMessage
impl UnwindSafe for SeedMessage
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