#[non_exhaustive]pub enum GenerateError {
Show 15 variants
Read {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
Overlay {
path: PathBuf,
source: OverlayError,
},
Yaml(Error),
Unusable(LoadError),
NotOpenApi(Error),
Schema {
name: String,
source: Error,
},
Typify(Error),
Unsupported(String),
NotRust {
file: &'static str,
source: Error,
},
Blob(DocumentError),
RoundTrip,
RustfmtMissing,
RustfmtSpawn {
path: PathBuf,
source: Error,
},
RustfmtFailed {
path: PathBuf,
},
}Expand description
Why a bless step stopped.
Most variants are the document saying something this generator has no Rust
spelling for; the rest are the two documents, the filesystem, or rustfmt.
A bless step reports and exits, so nothing here is meant to be branched on —
it is meant to name the thing to go and fix.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Read
Write
Overlay
A document or a layer over it that does not read, or does not apply.
path is the file to go and open: with corrections split across
layers, which one stopped the bless is the first thing to know.
Yaml(Error)
Unusable(LoadError)
NotOpenApi(Error)
Schema
Typify(Error)
Unsupported(String)
NotRust
Blob(DocumentError)
RoundTrip
RustfmtMissing
RustfmtSpawn
RustfmtFailed
Trait Implementations§
Source§impl Debug for GenerateError
impl Debug for GenerateError
Source§impl Display for GenerateError
impl Display for GenerateError
Source§impl Error for GenerateError
impl Error for GenerateError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for GenerateError
impl !UnwindSafe for GenerateError
impl Freeze for GenerateError
impl Send for GenerateError
impl Sync for GenerateError
impl Unpin for GenerateError
impl UnsafeUnpin for GenerateError
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