pub struct Unit {
pub id: String,
pub name: String,
pub dir: String,
pub refs: Vec<String>,
pub test: bool,
}Expand description
One .csproj project discovered under the repo.
Fields§
§id: StringRepo-relative path to the .csproj file itself (/-joined), e.g.
"src/App/App.csproj". Doubles as this unit’s identity: refs
entries and cross-unit lookups are matched against this string.
name: StringThe project name – the csproj file name with its .csproj
extension stripped (e.g. "App.Tests" for App.Tests.csproj). Used
only for the name-suffix fallback in test detection; not otherwise
assumed to be unique.
dir: StringRepo-relative path to the directory containing the .csproj file
(/-joined, no trailing slash; "" for a .csproj directly at
root).
refs: Vec<String>The ids of this unit’s DIRECT ProjectReference targets only (not
transitively closed – see ProjectModel::reachable for that). An
entry that does not match any discovered unit’s id (an out-of-root
target, or a project this scan never found) is kept verbatim; it
simply never resolves to anything.
test: boolWhether this project is a test project, per the precedence documented on the module.
Trait Implementations§
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
impl UnwindSafe for Unit
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more