#[non_exhaustive]pub enum DataDep {
Status,
Settings,
ClaudeJson,
Jsonl,
Usage,
Credentials,
Sessions,
Git,
}Expand description
Which data source on DataContext a segment reads.
Segments return &'static [DataDep] from data_deps(). The runtime
unions the declared deps across all enabled segments and only
lazy-fetches sources that some segment needs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Status
Parsed stdin payload. Always populated eagerly; listing is optional.
Settings
~/.claude/settings.json + overlays.
ClaudeJson
~/.claude.json per-user state.
Jsonl
JSONL transcripts under ~/.claude/projects/**.
Usage
OAuth /api/oauth/usage endpoint + cache.
Credentials
macOS Keychain / .credentials.json — not plugin-accessible
(reserved in plugin-api.md §@data_deps header syntax).
Sessions
~/.claude/sessions/{pid}.json live process directory.
Git
Git repo state via gix.
Implementations§
Trait Implementations§
impl Copy for DataDep
impl Eq for DataDep
impl StructuralPartialEq for DataDep
Auto Trait Implementations§
impl Freeze for DataDep
impl RefUnwindSafe for DataDep
impl Send for DataDep
impl Sync for DataDep
impl Unpin for DataDep
impl UnsafeUnpin for DataDep
impl UnwindSafe for DataDep
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.