pub struct JsonProjectEntry {
pub name: Option<String>,
pub project_type: ProjectType,
pub root_path: String,
pub build_artifacts_path: String,
pub build_artifacts_size: u64,
pub build_artifacts_size_formatted: String,
}Expand description
A single project entry in the JSON output.
Fields§
§name: Option<String>Project name extracted from config files, or null.
project_type: ProjectTypeProject type ("rust", "node", "python", "go", "java", "cpp", "swift", "dot_net").
root_path: StringAbsolute path to the project root directory.
build_artifacts_path: StringAbsolute path to the build artifacts directory.
build_artifacts_size: u64Size of the build artifacts in bytes.
build_artifacts_size_formatted: StringHuman-readable formatted size (e.g. "1.23 GB").
Implementations§
Source§impl JsonProjectEntry
impl JsonProjectEntry
Sourcepub fn from_project(project: &Project) -> Self
pub fn from_project(project: &Project) -> Self
Convert a Project into a JsonProjectEntry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JsonProjectEntry
impl RefUnwindSafe for JsonProjectEntry
impl Send for JsonProjectEntry
impl Sync for JsonProjectEntry
impl Unpin for JsonProjectEntry
impl UnsafeUnpin for JsonProjectEntry
impl UnwindSafe for JsonProjectEntry
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> 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>
Converts
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>
Converts
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