pub enum BoilerplateError {
NotFound(String),
InvalidStructure(String),
FileConflict {
path: String,
reason: String,
},
ValidationFailed(String),
IoError(Error),
}Expand description
Errors that can occur during boilerplate operations
Variants§
NotFound(String)
Boilerplate not found
InvalidStructure(String)
Invalid boilerplate structure
FileConflict
File conflict during scaffolding
ValidationFailed(String)
Boilerplate validation failed
IoError(Error)
IO error
Trait Implementations§
Source§impl Debug for BoilerplateError
impl Debug for BoilerplateError
Source§impl Display for BoilerplateError
impl Display for BoilerplateError
Source§impl Error for BoilerplateError
impl Error for BoilerplateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for BoilerplateError
impl From<Error> for BoilerplateError
Source§impl PartialEq for BoilerplateError
impl PartialEq for BoilerplateError
Auto Trait Implementations§
impl Freeze for BoilerplateError
impl !RefUnwindSafe for BoilerplateError
impl Send for BoilerplateError
impl Sync for BoilerplateError
impl Unpin for BoilerplateError
impl !UnwindSafe for BoilerplateError
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