pub enum Validation {
Ok,
NoInputFiles,
BatteryError(Error),
ControllerPackError(Error),
OutputDirIsNotADir,
And(Box<Validation>, Box<Validation>),
}
Expand description
Enumerates validation values
Variants§
Ok
Validation succeeded
NoInputFiles
No battery or controller pack file
BatteryError(Error)
Battery file validation error
ControllerPackError(Error)
Controller pack validation error
OutputDirIsNotADir
Output directory is not a directory
And(Box<Validation>, Box<Validation>)
Additional validation Error
Implementations§
Trait Implementations§
Source§impl AddAssign for Validation
impl AddAssign for Validation
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl Debug for Validation
impl Debug for Validation
Source§impl Display for Validation
impl Display for Validation
Source§impl From<Validation> for bool
impl From<Validation> for bool
Source§fn from(value: Validation) -> Self
fn from(value: Validation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Validation
impl !RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl !UnwindSafe for Validation
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