pub struct ValidateUseCase<F: FileSystem> { /* private fields */ }Expand description
Use case for validating ADRs.
Implementations§
Source§impl<F: FileSystem> ValidateUseCase<F>
impl<F: FileSystem> ValidateUseCase<F>
Sourcepub fn execute(&self, options: &ValidateOptions) -> Result<ValidateResult>
pub fn execute(&self, options: &ValidateOptions) -> Result<ValidateResult>
Executes the validation use case.
§Errors
Returns an error if:
- No ADR files are found
- File reading fails
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for ValidateUseCase<F>where
F: Freeze,
impl<F> RefUnwindSafe for ValidateUseCase<F>where
F: RefUnwindSafe,
impl<F> Send for ValidateUseCase<F>
impl<F> Sync for ValidateUseCase<F>
impl<F> Unpin for ValidateUseCase<F>where
F: Unpin,
impl<F> UnwindSafe for ValidateUseCase<F>where
F: UnwindSafe,
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