pub struct AutoKey {
pub chat_fnames: Option<Vec<PathBuf>>,
pub other_fnames: Option<Vec<PathBuf>>,
pub max_tokens: usize,
pub mentioned_fnames: Option<Vec<String>>,
pub mentioned_idents: Option<Vec<String>>,
pub anchor_fnames: Option<Vec<PathBuf>>,
pub anchor_idents: Option<Vec<String>>,
pub anchor_scoped: Option<Vec<(PathBuf, String)>>,
}Expand description
Auto mode cache key (SPEC §11).
Fields§
§chat_fnames: Option<Vec<PathBuf>>Sorted chat file paths, or None if empty.
other_fnames: Option<Vec<PathBuf>>Sorted other file paths, or None if empty.
max_tokens: usizeToken budget.
mentioned_fnames: Option<Vec<String>>Sorted mentioned file names, or None if empty.
mentioned_idents: Option<Vec<String>>Sorted mentioned identifiers, or None if empty.
anchor_fnames: Option<Vec<PathBuf>>Sorted anchor file paths, or None if empty.
anchor_idents: Option<Vec<String>>Sorted anchor identifiers, or None if empty.
anchor_scoped: Option<Vec<(PathBuf, String)>>Sorted scoped anchor (file, ident) pairs, or None if empty.
Trait Implementations§
impl Eq for AutoKey
impl StructuralPartialEq for AutoKey
Auto Trait Implementations§
impl Freeze for AutoKey
impl RefUnwindSafe for AutoKey
impl Send for AutoKey
impl Sync for AutoKey
impl Unpin for AutoKey
impl UnsafeUnpin for AutoKey
impl UnwindSafe for AutoKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.