pub struct ValidationReport {
pub total_providers: usize,
pub providers_by_lifetime: HashMap<ServiceLifetime, usize>,
pub dependency_graph_depth: usize,
pub potential_issues: Vec<ValidationIssue>,
}
Expand description
Validation report for container configuration
Fields§
§total_providers: usize
§providers_by_lifetime: HashMap<ServiceLifetime, usize>
§dependency_graph_depth: usize
§potential_issues: Vec<ValidationIssue>
Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn from_configurator(configurator: &ProviderConfigurator) -> Self
pub fn from_configurator(configurator: &ProviderConfigurator) -> Self
Create validation report from provider configurator
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if the configuration has any issues
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnwindSafe for ValidationReport
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