pub enum NormalizeError {
MissingFormatVersion,
InvalidFormatVersionType {
value: String,
},
InvalidFormatVersionSyntax {
value: String,
},
FormatVersionOutOfRange {
value: String,
},
UnsupportedFormatVersionMajor {
major: u32,
},
UnsupportedFormatVersionMinor {
major: u32,
minor: u32,
patch: u32,
},
InvalidEntryPointTarget {
identifier: String,
target: String,
reason: &'static str,
},
DuplicateEntryPointTarget {
target: String,
identifiers: Vec<String>,
},
Decode(Error),
UnsupportedSpecsDistribution,
}Expand description
Failure to decode the supplied Morphir IR generation.
Variants§
MissingFormatVersion
The IR root has no formatVersion member.
InvalidFormatVersionType
The version has an unsupported JSON scalar type.
InvalidFormatVersionSyntax
The version string is not a canonical semantic version.
FormatVersionOutOfRange
A version component exceeds the supported integer range.
UnsupportedFormatVersionMajor
The requested major IR generation is unsupported.
UnsupportedFormatVersionMinor
The requested minor revision is outside this reader’s support table.
Fields
InvalidEntryPointTarget
A v4 entry point does not target one canonical public value.
Fields
DuplicateEntryPointTarget
More than one entry-point identifier targets the same value.
Fields
Decode(Error)
The generation-specific Morphir IR decoder rejected the document.
UnsupportedSpecsDistribution
A v3 Specs distribution was supplied where a projection needs
definitions; Specs carries no bodies to normalize.
Implementations§
Trait Implementations§
Source§impl Debug for NormalizeError
impl Debug for NormalizeError
Source§impl Display for NormalizeError
impl Display for NormalizeError
Source§impl Error for NormalizeError
impl Error for NormalizeError
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 NormalizeError
impl !UnwindSafe for NormalizeError
impl Freeze for NormalizeError
impl Send for NormalizeError
impl Sync for NormalizeError
impl Unpin for NormalizeError
impl UnsafeUnpin for NormalizeError
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