pub enum SimpleExtensionsError {
DuplicateUrn(Urn),
ExtensionTypeError(ExtensionTypeError),
YamlParse(Error),
Io(Error),
InvalidUrn(InvalidUrn),
UnresolvedTypeReference {
type_name: String,
},
DuplicateTypeName {
name: String,
},
}Available on crate feature
parse only.Expand description
Errors for converting from YAML to SimpleExtensions.
Variants§
DuplicateUrn(Urn)
Duplicate URNs in the registry
ExtensionTypeError(ExtensionTypeError)
Extension type error
YamlParse(Error)
Failed to parse SimpleExtensions YAML
Io(Error)
I/O error while reading extension content
InvalidUrn(InvalidUrn)
Invalid URN provided
UnresolvedTypeReference
Unresolved type reference in structure field
DuplicateTypeName
Duplicate type definition within the same extension
Trait Implementations§
Source§impl Debug for SimpleExtensionsError
impl Debug for SimpleExtensionsError
Source§impl Display for SimpleExtensionsError
impl Display for SimpleExtensionsError
Source§impl Error for SimpleExtensionsError
impl Error for SimpleExtensionsError
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§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 SimpleExtensionsError
impl From<Error> for SimpleExtensionsError
Source§impl From<Error> for SimpleExtensionsError
impl From<Error> for SimpleExtensionsError
Source§impl From<ExtensionTypeError> for SimpleExtensionsError
impl From<ExtensionTypeError> for SimpleExtensionsError
Source§fn from(source: ExtensionTypeError) -> Self
fn from(source: ExtensionTypeError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUrn> for SimpleExtensionsError
impl From<InvalidUrn> for SimpleExtensionsError
Source§fn from(source: InvalidUrn) -> Self
fn from(source: InvalidUrn) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SimpleExtensionsError
impl !RefUnwindSafe for SimpleExtensionsError
impl Send for SimpleExtensionsError
impl Sync for SimpleExtensionsError
impl Unpin for SimpleExtensionsError
impl !UnwindSafe for SimpleExtensionsError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more