pub struct NewConversationMemory {Show 13 fields
pub conversation_id: ConversationId,
pub conversation_version: Option<i64>,
pub response_id: Option<ResponseId>,
pub memory_type: ConversationMemoryType,
pub status: ConversationMemoryStatus,
pub attempt: i64,
pub owner_id: Option<String>,
pub next_run_at: DateTime<Utc>,
pub lease_until: Option<DateTime<Utc>>,
pub content: Option<String>,
pub memory_config: Option<String>,
pub scope_id: Option<String>,
pub error_msg: Option<String>,
}Expand description
Insert-only payload for creating a new conversation memory row.
NewConversationMemory intentionally omits database-managed fields such as
memory_id, created_at, and updated_at. Callers should not set those
values directly; they are created or maintained by the database/write path.
When changing an existing record, use the appropriate update path rather
than reusing this struct.
Fields§
§conversation_id: ConversationId§conversation_version: Option<i64>§response_id: Option<ResponseId>§memory_type: ConversationMemoryType§status: ConversationMemoryStatus§attempt: i64§owner_id: Option<String>§next_run_at: DateTime<Utc>§lease_until: Option<DateTime<Utc>>§content: Option<String>§memory_config: Option<String>§scope_id: Option<String>§error_msg: Option<String>Trait Implementations§
Source§impl Clone for NewConversationMemory
impl Clone for NewConversationMemory
Source§fn clone(&self) -> NewConversationMemory
fn clone(&self) -> NewConversationMemory
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 NewConversationMemory
impl Debug for NewConversationMemory
Source§impl<'de> Deserialize<'de> for NewConversationMemory
impl<'de> Deserialize<'de> for NewConversationMemory
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
Source§impl PartialEq for NewConversationMemory
impl PartialEq for NewConversationMemory
Source§impl Serialize for NewConversationMemory
impl Serialize for NewConversationMemory
impl StructuralPartialEq for NewConversationMemory
Auto Trait Implementations§
impl Freeze for NewConversationMemory
impl RefUnwindSafe for NewConversationMemory
impl Send for NewConversationMemory
impl Sync for NewConversationMemory
impl Unpin for NewConversationMemory
impl UnsafeUnpin for NewConversationMemory
impl UnwindSafe for NewConversationMemory
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