pub struct MemoryConversationStorage { /* private fields */ }Expand description
In-memory conversation storage used for development and tests
Implementations§
Trait Implementations§
Source§impl Clone for MemoryConversationStorage
impl Clone for MemoryConversationStorage
Source§fn clone(&self) -> MemoryConversationStorage
fn clone(&self) -> MemoryConversationStorage
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 ConversationStorage for MemoryConversationStorage
impl ConversationStorage for MemoryConversationStorage
fn create_conversation<'life0, 'async_trait>(
&'life0 self,
input: NewConversation,
) -> Pin<Box<dyn Future<Output = Result<Conversation, ConversationStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_conversation<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ConversationId,
) -> Pin<Box<dyn Future<Output = Result<Option<Conversation>, ConversationStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_conversation<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ConversationId,
metadata: Option<Map<String, Value>>,
) -> Pin<Box<dyn Future<Output = Result<Option<Conversation>, ConversationStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_conversation<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ConversationId,
) -> Pin<Box<dyn Future<Output = Result<bool, ConversationStorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Default for MemoryConversationStorage
impl Default for MemoryConversationStorage
Source§fn default() -> MemoryConversationStorage
fn default() -> MemoryConversationStorage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryConversationStorage
impl !RefUnwindSafe for MemoryConversationStorage
impl Send for MemoryConversationStorage
impl Sync for MemoryConversationStorage
impl Unpin for MemoryConversationStorage
impl UnsafeUnpin for MemoryConversationStorage
impl !UnwindSafe for MemoryConversationStorage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more