pub struct ProjectResourceScope {
pub project_id: ProjectId,
pub project_home: PathBuf,
pub workspace: Option<PathBuf>,
pub binding_status: WorkspaceBindingStatus,
pub resource_revision: u64,
}Expand description
Stable Project-home resources plus the current workspace overlay.
Fields§
§project_id: ProjectId§project_home: PathBuf§workspace: Option<PathBuf>§binding_status: WorkspaceBindingStatus§resource_revision: u64Implementations§
Source§impl ProjectResourceScope
impl ProjectResourceScope
pub fn project_memory_root(&self) -> PathBuf
pub fn project_skills_dir(&self) -> PathBuf
pub fn project_mode_skills_dir(&self, mode: &str) -> PathBuf
pub fn workspace_skills_dir(&self) -> Option<PathBuf>
pub fn workspace_mode_skills_dir(&self, mode: &str) -> Option<PathBuf>
pub fn project_commands_dir(&self) -> PathBuf
pub fn workspace_commands_dir(&self) -> Option<PathBuf>
Sourcepub fn candidates(
&self,
kind: ProjectResourceKind,
) -> Vec<ProjectResourceCandidate>
pub fn candidates( &self, kind: ProjectResourceKind, ) -> Vec<ProjectResourceCandidate>
Ordinary resource precedence is Project first, then the more-specific workspace overlay. Security policies must use their dedicated managed / deny / trust merge logic instead of this shadowing order.
pub fn diagnostic(&self) -> ProjectResourceDiagnostic
Trait Implementations§
Source§impl Clone for ProjectResourceScope
impl Clone for ProjectResourceScope
Source§fn clone(&self) -> ProjectResourceScope
fn clone(&self) -> ProjectResourceScope
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 ProjectResourceScope
impl Debug for ProjectResourceScope
impl Eq for ProjectResourceScope
Source§impl PartialEq for ProjectResourceScope
impl PartialEq for ProjectResourceScope
impl StructuralPartialEq for ProjectResourceScope
Auto Trait Implementations§
impl Freeze for ProjectResourceScope
impl RefUnwindSafe for ProjectResourceScope
impl Send for ProjectResourceScope
impl Sync for ProjectResourceScope
impl Unpin for ProjectResourceScope
impl UnsafeUnpin for ProjectResourceScope
impl UnwindSafe for ProjectResourceScope
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,
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.