[−][src]Enum config_struct::GenerationError
An error occurring during code generation.
Variants
UnknownInputFormat(String)
Occurs when the config format can't be determined from the filename extension of the input file.
InvalidFieldName(String)
Occurs when encountering a field in the config which is not a valid name for a struct field.
InvalidVariantName(String)
Occurs when encountering a field in the config which is not a valid name for an enum variant.
HeterogenousArray(String)
Occurs when an array in the config file contains multiple different types of data, which cannot be represented in a Rust struct.
Occurs when generating from source and not a file, if attempting to also generate dynamic loading functions.
Because no input filepath was given, it's impossible to generate a function which loads from that file.
DeserializationFailed(String)
Occurs when the config file could not be correctly parsed.
StructOptions(OptionsError)
Occurs when invalid options were provided.
Trait Implementations
impl Debug for GenerationError
[src]
impl Display for GenerationError
[src]
impl Fail for GenerationError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl From<GenerationError> for Error
[src]
fn from(error: GenerationError) -> Self
[src]
impl From<OptionsError> for GenerationError
[src]
fn from(error: OptionsError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for GenerationError
impl Send for GenerationError
impl Sync for GenerationError
impl Unpin for GenerationError
impl UnwindSafe for GenerationError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,