pub struct ValidationResult {
pub errors: Vec<ValidationError>,
pub warnings: Vec<ValidationWarning>,
pub services: HashMap<TypeId, LifetimeInfo>,
}Expand description
Result of lifetime validation.
Fields§
§errors: Vec<ValidationError>Errors that must be fixed (will prevent compilation)
warnings: Vec<ValidationWarning>Warnings about potentially problematic configurations
services: HashMap<TypeId, LifetimeInfo>All registered services
Implementations§
Source§impl ValidationResult
Runtime validation helpers for development and testing.
impl ValidationResult
Runtime validation helpers for development and testing.
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Returns true if there are warnings.
Sourcepub fn format_issues(&self) -> String
pub fn format_issues(&self) -> String
Formats errors and warnings for display.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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