pub struct ChoiceSelectionFeedback {
pub request_id: String,
pub chosen_index: u32,
pub rejected_indices: Option<Vec<u32>>,
pub latency_to_select_ms: Option<u64>,
pub ui_context: Option<Value>,
pub candidate_hashes: Option<Vec<String>>,
}Expand description
Minimal user feedback for multi-candidate selection.
Fields§
§request_id: StringRequest identifier emitted by the runtime (client_request_id).
chosen_index: u32The chosen candidate index (0-based).
rejected_indices: Option<Vec<u32>>Optional rejected indices (0-based).
latency_to_select_ms: Option<u64>Time from render to selection (ms), if the UI can measure it.
ui_context: Option<Value>Optional UI context (component name / experiment id / etc.)
candidate_hashes: Option<Vec<String>>Optional content hashes to link choice to rendered candidates without uploading text.
Trait Implementations§
Source§impl Clone for ChoiceSelectionFeedback
impl Clone for ChoiceSelectionFeedback
Source§fn clone(&self) -> ChoiceSelectionFeedback
fn clone(&self) -> ChoiceSelectionFeedback
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 moreAuto Trait Implementations§
impl Freeze for ChoiceSelectionFeedback
impl RefUnwindSafe for ChoiceSelectionFeedback
impl Send for ChoiceSelectionFeedback
impl Sync for ChoiceSelectionFeedback
impl Unpin for ChoiceSelectionFeedback
impl UnwindSafe for ChoiceSelectionFeedback
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