pub struct ContextReference {
pub kind: ContextReferenceKind,
pub source: ContextReferenceSource,
pub badge: String,
pub label: String,
pub target: String,
pub included: bool,
pub expanded: bool,
pub detail: Option<String>,
}Expand description
The transcript keeps the user’s compact text (@path or [Attached ...])
readable. This record preserves the exact target and inclusion state for
the context inspector and for session resume without leaking raw metadata
into the visible history cell.
Fields§
§kind: ContextReferenceKind§source: ContextReferenceSource§badge: StringShort badge for terminal display, e.g. file, dir, image.
label: StringCompact display label from the transcript, without the leading @.
target: StringResolved target path or URI-equivalent string.
included: bool§expanded: bool§detail: Option<String>Trait Implementations§
Source§impl Clone for ContextReference
impl Clone for ContextReference
Source§impl Debug for ContextReference
impl Debug for ContextReference
Source§impl<'de> Deserialize<'de> for ContextReference
impl<'de> Deserialize<'de> for ContextReference
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 ContextReference
Source§impl PartialEq for ContextReference
impl PartialEq for ContextReference
Source§impl Serialize for ContextReference
impl Serialize for ContextReference
impl StructuralPartialEq for ContextReference
Auto Trait Implementations§
impl Forget for ContextReference
impl Freeze for ContextReference
impl Move for ContextReference
impl RefUnwindSafe for ContextReference
impl Send for ContextReference
impl Sync for ContextReference
impl Unpin for ContextReference
impl UnsafeUnpin for ContextReference
impl UnwindSafe for ContextReference
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§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.