pub enum ComposeError {
Show 14 variants
NotSelfDescribing,
EmptyCapabilities,
InvalidEnvelope {
message: String,
},
NoRootCapability,
MultipleRootCapabilities {
names: Vec<String>,
},
UnknownParent {
extension: String,
parent: String,
},
OrphanExtension {
extension: String,
root: String,
},
MissingDefEntry {
extension: String,
expected_key: String,
},
ContainerExtensionShape {
extension: String,
capability: String,
},
SchemaFetch {
url: String,
message: String,
},
ProfileFetch {
url: String,
message: String,
},
InvalidCapability {
name: String,
message: String,
},
InvalidUrl {
url: String,
message: String,
},
VersionConstraintViolation {
extension: String,
target: String,
range: String,
actual: String,
},
}Expand description
Errors during schema composition from UCP capability metadata.
Variants§
NotSelfDescribing
EmptyCapabilities
InvalidEnvelope
NoRootCapability
MultipleRootCapabilities
UnknownParent
OrphanExtension
MissingDefEntry
ContainerExtensionShape
A container-shaped capability (request/response shapes live under
$defs/{op}_{direction}) is extended by a schema whose $defs[<capability>]
is not itself a container of operation shapes. Container extensions MUST
mirror the base’s operation keys (e.g. { "$defs": { "search_response": ... } }).
SchemaFetch
ProfileFetch
InvalidCapability
InvalidUrl
VersionConstraintViolation
Implementations§
Trait Implementations§
Source§impl Debug for ComposeError
impl Debug for ComposeError
Source§impl Display for ComposeError
impl Display for ComposeError
Source§impl Error for ComposeError
impl Error for ComposeError
1.30.0 · 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 Freeze for ComposeError
impl RefUnwindSafe for ComposeError
impl Send for ComposeError
impl Sync for ComposeError
impl Unpin for ComposeError
impl UnsafeUnpin for ComposeError
impl UnwindSafe for ComposeError
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> 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.