pub enum ResolveError {
Show 13 variants
FileNotFound {
path: PathBuf,
},
ReadError {
path: PathBuf,
source: Error,
},
NetworkError {
url: String,
source: Error,
},
InvalidJson {
source: Error,
},
InvalidAnnotationType {
path: String,
actual: String,
},
UnknownVisibility {
path: String,
value: String,
},
InvalidSchemaTransition {
path: String,
message: String,
},
MonotonicityViolation {
path: String,
field: String,
base_status: String,
attempted: String,
},
TypeConflict {
path: String,
base_type: String,
ext_type: String,
},
InvalidSchema {
message: String,
},
OperationShapeNotFound {
key: String,
available: String,
},
DefNotFound {
def: String,
available: String,
},
BundleError {
message: String,
},
}Expand description
Errors during schema resolution.
Variants§
FileNotFound
ReadError
NetworkError
InvalidJson
InvalidAnnotationType
UnknownVisibility
InvalidSchemaTransition
MonotonicityViolation
allOf extension tries to weaken a field that base declares as required. Monotonicity rule: extensions can narrow (optional→omit) or strengthen (optional→required) but never weaken required fields.
TypeConflict
allOf branches declare contradictory types on the same property.
InvalidSchema
OperationShapeNotFound
A container-shaped capability schema has no message body for the
requested (op, direction). The body lives at $defs/{op}_{direction};
because a container root has no body of its own, an absent key is a hard
error rather than a fall-through to an unconstrained root.
DefNotFound
An explicit --def / def_name selector names a $defs entry that the
resolved schema does not contain. Used for non-derivable shapes (transport
message types, host views, sub-types) where the name is authored, not
computed from (op, direction).
BundleError
Implementations§
Trait Implementations§
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ResolveError> for ValidateError
impl From<ResolveError> for ValidateError
Source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ResolveError
impl !UnwindSafe for ResolveError
impl Freeze for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl UnsafeUnpin for ResolveError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.