pub struct PortfolioSummary {
pub directory: String,
pub recursive: bool,
pub by_type: Vec<(String, usize)>,
pub valid_artifacts: usize,
pub invalid_artifacts: usize,
pub recommended_slots: usize,
pub filled_slots: usize,
pub relationships: RelationshipSummary,
pub attention: Vec<AttentionItem>,
pub unknown_paths: Vec<String>,
pub relationships_ok: bool,
}Fields§
§directory: String§recursive: bool§by_type: Vec<(String, usize)>Ordered {type: count} including unknown.
valid_artifacts: usize§invalid_artifacts: usize§recommended_slots: usize§filled_slots: usize§relationships: RelationshipSummary§attention: Vec<AttentionItem>§unknown_paths: Vec<String>§relationships_ok: boolImplementations§
Source§impl PortfolioSummary
impl PortfolioSummary
pub fn total_artifacts(&self) -> usize
pub fn completeness(&self) -> f64
pub fn health_score(&self) -> i64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortfolioSummary
impl RefUnwindSafe for PortfolioSummary
impl Send for PortfolioSummary
impl Sync for PortfolioSummary
impl Unpin for PortfolioSummary
impl UnsafeUnpin for PortfolioSummary
impl UnwindSafe for PortfolioSummary
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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