pub struct DocKey {
pub harness: HarnessId,
pub id: String,
pub source: Option<String>,
}Expand description
Identity of an indexed document: which harness’s session it is.
source disambiguates distinct copies that share a (harness, id) —
Claude Code, for one, writes the same session id into more than one
project directory when a session is resumed from a different cwd — so
both copies can be indexed side by side instead of one silently
replacing the other. Callers whose ids are already unique may leave it
None.
Fields§
§harness: HarnessId§id: String§source: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for DocKey
impl<'de> Deserialize<'de> for DocKey
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
impl Eq for DocKey
impl StructuralPartialEq for DocKey
Auto Trait Implementations§
impl Freeze for DocKey
impl RefUnwindSafe for DocKey
impl Send for DocKey
impl Sync for DocKey
impl Unpin for DocKey
impl UnsafeUnpin for DocKey
impl UnwindSafe for DocKey
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.