pub enum ContextSource {
File,
Project,
UserSelection,
CanvasNode,
StudyBlock,
FocusThread,
MaterialExcerpt,
SessionSummary,
Decision,
MemorySearch,
Other(String),
}Expand description
Identifies the origin or category of a context packet.
Clients (TUI, Tutor, editors) use these variants so the engine can prioritize and format injected context without knowing the client’s UI.
Variants§
File
Content from a file on disk.
Project
Project-level metadata or state.
UserSelection
A user’s text selection in an editor or UI.
CanvasNode
A node from a visual canvas (e.g. NAVI Tutor).
StudyBlock
A study block from a learning workspace.
FocusThread
A focus thread tracking the user’s current area of work.
MaterialExcerpt
An excerpt from study material or documentation.
SessionSummary
A summary from a previous session.
Decision
A recorded decision or rationale.
MemorySearch
Results from a memory or knowledge-base search.
Other(String)
A custom source identified by an arbitrary string tag.
Trait Implementations§
Source§impl Clone for ContextSource
impl Clone for ContextSource
Source§fn clone(&self) -> ContextSource
fn clone(&self) -> ContextSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextSource
impl Debug for ContextSource
Source§impl<'de> Deserialize<'de> for ContextSource
impl<'de> Deserialize<'de> for ContextSource
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 ContextSource
Source§impl PartialEq for ContextSource
impl PartialEq for ContextSource
Source§impl Serialize for ContextSource
impl Serialize for ContextSource
impl StructuralPartialEq for ContextSource
Auto Trait Implementations§
impl Freeze for ContextSource
impl RefUnwindSafe for ContextSource
impl Send for ContextSource
impl Sync for ContextSource
impl Unpin for ContextSource
impl UnsafeUnpin for ContextSource
impl UnwindSafe for ContextSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.