pub struct SessionQAUpdate {
pub question: Option<String>,
pub answer: Option<String>,
pub context: Option<Option<String>>,
pub feedback_text: Option<Option<String>>,
pub feedback_score: Option<Option<i32>>,
pub used_graph_element_ids: Option<Option<UsedGraphElementIds>>,
pub memify_metadata: Option<Option<HashMap<String, bool>>>,
}Expand description
Partial update DTO for a QA entry.
- Outer
Nonemeans “leave field unchanged”. Some(None)means “clear the field”.Some(Some(value))means “set the field to this value”.
For non-optional fields (question, answer) the outer Option controls
whether an update is applied.
Fields§
§question: Option<String>§answer: Option<String>§context: Option<Option<String>>§feedback_text: Option<Option<String>>§feedback_score: Option<Option<i32>>§used_graph_element_ids: Option<Option<UsedGraphElementIds>>§memify_metadata: Option<Option<HashMap<String, bool>>>Trait Implementations§
Source§impl Clone for SessionQAUpdate
impl Clone for SessionQAUpdate
Source§fn clone(&self) -> SessionQAUpdate
fn clone(&self) -> SessionQAUpdate
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 SessionQAUpdate
impl Debug for SessionQAUpdate
Source§impl Default for SessionQAUpdate
impl Default for SessionQAUpdate
Source§fn default() -> SessionQAUpdate
fn default() -> SessionQAUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionQAUpdate
impl RefUnwindSafe for SessionQAUpdate
impl Send for SessionQAUpdate
impl Sync for SessionQAUpdate
impl Unpin for SessionQAUpdate
impl UnsafeUnpin for SessionQAUpdate
impl UnwindSafe for SessionQAUpdate
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