pub struct FeedbackState {
pub available: bool,
pub reason: String,
pub entries_total: usize,
pub query_matches: usize,
}Expand description
Explicit description of feedback availability for the current query.
Allows agents to distinguish “no feedback exists” from “feedback exists but didn’t fire” from “feedback applied and modified results” — so that a clean-room DB reset is never silently misread as a broken ranker.
Fields§
§available: boolWhether any feedback entries exist for this workspace at all.
reason: StringReason code:
"no_feedback_entries"— clean-room or reset, nothing recorded"entries_exist_no_query_match"— feedback exists but none matches"entries_applied"— feedback entries influenced this query
entries_total: usizeTotal feedback entries recorded across all symbols and queries.
query_matches: usizeNumber of feedback entries whose recorded query shares at least one token with the current query.
Implementations§
Trait Implementations§
Source§impl Clone for FeedbackState
impl Clone for FeedbackState
Source§impl Debug for FeedbackState
impl Debug for FeedbackState
Source§impl<'de> Deserialize<'de> for FeedbackState
impl<'de> Deserialize<'de> for FeedbackState
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 FeedbackState
impl RefUnwindSafe for FeedbackState
impl Send for FeedbackState
impl Sync for FeedbackState
impl Unpin for FeedbackState
impl UnsafeUnpin for FeedbackState
impl UnwindSafe for FeedbackState
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