pub enum ProjectSource {
ProjectFlag,
Subagent,
Env,
SessionActive,
Workspace,
Deduced,
UserDefault,
}Expand description
Which precedence tier produced the effective_project result.
Variants§
ProjectFlag
A --project <id> flag override.
Subagent
A subagent’s per-worktree override.
Env
The TRACEVAULT_PROJECT environment variable — a per-process
assertion, re-asserted at every launch and never written to disk.
Outranks every remembered tier so a stale user_project.toml or a
.tracevault/config.toml baked into a pod image cannot outrank the
launcher that started the process.
SessionActive
The session’s project-level active binding.
Workspace
The directory’s .tracevault/config.toml project_id (VIS-1256):
every session started under that directory belongs to this project
unless something more specific (e.g. a project switch) says
otherwise.
Deduced
Repo deduction from the git remote, resolved server-side. Produced
only by the display chain resolve_effective_project, never by the
capture chain capture_project_binding.
UserDefault
A session-independent user-level default (project switch --user).
Produced by capture_project_binding and
resolve_effective_project, not effective_project.
Implementations§
Source§impl ProjectSource
impl ProjectSource
Sourcepub fn rewrite_command(self) -> &'static str
pub fn rewrite_command(self) -> &'static str
The command that rewrites a binding stored by this tier, for a
warning about a stored project_id that is not a valid id.
Trait Implementations§
Source§impl Clone for ProjectSource
impl Clone for ProjectSource
impl Copy for ProjectSource
Source§impl Debug for ProjectSource
impl Debug for ProjectSource
Source§impl Display for ProjectSource
impl Display for ProjectSource
impl Eq for ProjectSource
Source§impl PartialEq for ProjectSource
impl PartialEq for ProjectSource
impl StructuralPartialEq for ProjectSource
Auto Trait Implementations§
impl Forget for ProjectSource
impl Freeze for ProjectSource
impl Move for ProjectSource
impl RefUnwindSafe for ProjectSource
impl Send for ProjectSource
impl Sync for ProjectSource
impl Unpin for ProjectSource
impl UnsafeUnpin for ProjectSource
impl UnwindSafe for ProjectSource
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
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
key and return true if they are equal.