pub struct Interpretation {
pub intent: Intent,
pub filter: Option<Expr>,
pub sort: Option<Metric>,
pub targets: Vec<(String, f64)>,
pub need_bytes: Option<u64>,
pub label: String,
pub score: f64,
}Expand description
One way to read an ambiguous input (the palette offers the top 3).
Fields§
§intent: Intent§filter: Option<Expr>§sort: Option<Metric>§targets: Vec<(String, f64)>§need_bytes: Option<u64>§label: StringHuman label, e.g. “rank by memory”, “go to Claude Code”, “filter kind:model”.
score: f640..1.
Trait Implementations§
Source§impl Clone for Interpretation
impl Clone for Interpretation
Source§impl Debug for Interpretation
impl Debug for Interpretation
Source§impl<'de> Deserialize<'de> for Interpretation
impl<'de> Deserialize<'de> for Interpretation
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 Interpretation
impl PartialEq for Interpretation
Source§impl Serialize for Interpretation
impl Serialize for Interpretation
impl StructuralPartialEq for Interpretation
Auto Trait Implementations§
impl Forget for Interpretation
impl Freeze for Interpretationwhere
*const u8 is !null: Freeze,
PhantomData<Expr>: Freeze,
*const Expr is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, f64)>: Freeze,
impl Move for Interpretation
impl RefUnwindSafe for Interpretation
impl Send for Interpretation
impl Sync for Interpretation
impl Unpin for Interpretation
impl UnsafeUnpin for Interpretationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, f64)>: UnsafeUnpin,
impl UnwindSafe for Interpretation
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