pub enum ConversionError {
HoleNotSupported,
HoleInLiteral,
NonStringMapKeysNotSupported,
BigIntOutOfRange(String),
InvalidFloatValue(String),
InvalidNodeReference(usize),
CircularReference(String),
JsonConversion(EureToJsonError),
InvalidDefaultValue {
expected: &'static str,
actual: String,
},
}Expand description
Errors that can occur during Eure Schema to JSON Schema conversion
Variants§
HoleNotSupported
Eure Hole type cannot be represented in JSON Schema
HoleInLiteral
Eure Hole in literal value cannot be represented in JSON Schema
NonStringMapKeysNotSupported
Eure Map type with non-string keys cannot be represented in JSON Schema
BigIntOutOfRange(String)
BigInt value is too large to fit in i64 for JSON Schema
InvalidFloatValue(String)
Float value (NaN or Infinity) cannot be represented in JSON Schema
InvalidNodeReference(usize)
Invalid schema node reference
CircularReference(String)
Circular reference detected (not supported in JSON Schema)
JsonConversion(EureToJsonError)
JSON conversion error (from eure-json)
InvalidDefaultValue
Invalid default value type
Trait Implementations§
Source§impl Clone for ConversionError
impl Clone for ConversionError
Source§fn clone(&self) -> ConversionError
fn clone(&self) -> ConversionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConversionError
impl Debug for ConversionError
Source§impl Display for ConversionError
impl Display for ConversionError
Source§impl Error for ConversionError
impl Error for ConversionError
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<EureToJsonError> for ConversionError
impl From<EureToJsonError> for ConversionError
Source§fn from(source: EureToJsonError) -> Self
fn from(source: EureToJsonError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConversionError
impl PartialEq for ConversionError
impl StructuralPartialEq for ConversionError
Auto Trait Implementations§
impl Freeze for ConversionError
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnwindSafe for ConversionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> Context<TracedError> for Ewhere
E: AnyError,
impl<E> Context<TracedError> for Ewhere
E: AnyError,
Source§fn context<C>(self, context: C) -> TracedError
fn context<C>(self, context: C) -> TracedError
Adds additional context. This becomes a no-op if the
traced feature is disabled.Source§fn with_context<F, C>(self, context: F) -> TracedError
fn with_context<F, C>(self, context: F) -> TracedError
Lazily adds additional context. This becomes a no-op if the
traced feature is disabled.Source§impl<E1, E2> IntoTraced<TracedError<E2>> for E1
impl<E1, E2> IntoTraced<TracedError<E2>> for E1
Source§fn into_traced(self) -> TracedError<E2>
fn into_traced(self) -> TracedError<E2>
Convert Error to a type containing a
TracedError mapping the underlying typeSource§impl<E> Traced<TracedError<E>> for Ewhere
E: AnyError,
impl<E> Traced<TracedError<E>> for Ewhere
E: AnyError,
Source§fn traced(self) -> TracedError<E>
fn traced(self) -> TracedError<E>
Convert Error to a type containing a
TracedError keeping the underlying typeSource§impl<E> TracedDyn<TracedError> for Ewhere
E: AnyError,
impl<E> TracedDyn<TracedError> for Ewhere
E: AnyError,
Source§fn traced_dyn(self) -> TracedError
fn traced_dyn(self) -> TracedError
Convert Error to
TracedError without caring about the underlying type