pub struct ConversationStore { /* private fields */ }Implementations§
Source§impl ConversationStore
impl ConversationStore
pub fn path(&self) -> &Path
pub fn new_for_fresh(path: PathBuf) -> Result<Self, String>
pub fn load(path: PathBuf) -> Result<(Self, Option<LoadedConversation>), String>
pub fn save( &mut self, model: &str, goal: Option<&str>, messages: &[Message], ) -> Result<(), String>
pub fn rewrite( &mut self, model: Option<&str>, goal: Option<&str>, messages: &[Message], ) -> Result<(), String>
Auto Trait Implementations§
impl Forget for ConversationStore
impl Freeze for ConversationStore
impl Move for ConversationStore
impl RefUnwindSafe for ConversationStore
impl Send for ConversationStorewhere
RawVecInner: Send,
impl Sync for ConversationStorewhere
RawVecInner: Sync,
impl Unpin for ConversationStore
impl UnsafeUnpin for ConversationStore
impl UnwindSafe for ConversationStorewhere
RawVecInner: UnwindSafe,
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