pub struct SessionQAEntry {
pub id: Uuid,
pub session_id: String,
pub user_id: Option<String>,
pub question: String,
pub answer: String,
pub context: Option<String>,
pub created_at: DateTime<Utc>,
pub feedback_text: Option<String>,
pub feedback_score: Option<i32>,
pub used_graph_element_ids: Option<UsedGraphElementIds>,
pub memify_metadata: Option<HashMap<String, bool>>,
}Expand description
A single question-answer entry stored in a session.
Fields§
§id: Uuid§session_id: String§user_id: Option<String>§question: String§answer: String§context: Option<String>§created_at: DateTime<Utc>§feedback_text: Option<String>User-provided feedback text for this Q&A entry.
feedback_score: Option<i32>User-provided feedback score (1-5 rating, validated on write).
used_graph_element_ids: Option<UsedGraphElementIds>Graph node/edge IDs that were used to produce the answer.
memify_metadata: Option<HashMap<String, bool>>Metadata tracking for the memify pipeline (e.g. {"feedback_weights_applied": true}).
Trait Implementations§
Source§impl Clone for SessionQAEntry
impl Clone for SessionQAEntry
Source§fn clone(&self) -> SessionQAEntry
fn clone(&self) -> SessionQAEntry
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 SessionQAEntry
impl Debug for SessionQAEntry
Source§impl<'de> Deserialize<'de> for SessionQAEntry
impl<'de> Deserialize<'de> for SessionQAEntry
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 SessionQAEntry
impl RefUnwindSafe for SessionQAEntry
impl Send for SessionQAEntry
impl Sync for SessionQAEntry
impl Unpin for SessionQAEntry
impl UnsafeUnpin for SessionQAEntry
impl UnwindSafe for SessionQAEntry
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