pub struct WorkspaceInfo {
pub kind: WorkspaceKindId,
pub root: PathBuf,
pub members: Vec<PathBuf>,
pub signals: Vec<String>,
}Expand description
Single workspace entry in a DetectionResult.
Fields§
§kind: WorkspaceKindIdWorkspace kind (Cargo / Npm / Pnpm / …).
root: PathBufAbsolute on-disk path of the workspace root (where the manifest lives).
members: Vec<PathBuf>Absolute paths to member project roots, in the order the manifest declares them.
signals: Vec<String>Files / patterns that triggered detection.
Trait Implementations§
Source§impl Clone for WorkspaceInfo
impl Clone for WorkspaceInfo
Source§fn clone(&self) -> WorkspaceInfo
fn clone(&self) -> WorkspaceInfo
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 WorkspaceInfo
impl Debug for WorkspaceInfo
Auto Trait Implementations§
impl Freeze for WorkspaceInfo
impl RefUnwindSafe for WorkspaceInfo
impl Send for WorkspaceInfo
impl Sync for WorkspaceInfo
impl Unpin for WorkspaceInfo
impl UnsafeUnpin for WorkspaceInfo
impl UnwindSafe for WorkspaceInfo
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