#[non_exhaustive]pub enum SpecError {
ZeroSchemaVersion,
SchemaIdentityMismatch,
InvalidParameter(String),
DuplicateParameter(String),
EmptyAlternative,
DuplicateAlternative,
DestructiveRead,
ReadMarkedIdempotent,
UnsafeRetryClaim,
RiskyMutationWithoutPlan,
InvalidRequirement(String),
}Expand description
Invalid operation catalog metadata.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroSchemaVersion
Schema version zero is invalid.
SchemaIdentityMismatch
Parameter or result schema identity did not match the operation and version.
InvalidParameter(String)
A parameter name is invalid.
DuplicateParameter(String)
A parameter appears more than once in a group.
EmptyAlternative
An alternative parameter group is empty.
DuplicateAlternative
The same alternative parameter group appears more than once.
DestructiveRead
A read operation was incorrectly classified as destructive.
ReadMarkedIdempotent
Read operations do not use mutation idempotency metadata.
UnsafeRetryClaim
A non-idempotent mutation claimed safe automatic retry.
RiskyMutationWithoutPlan
A destructive or privileged mutation omitted planning support.
InvalidRequirement(String)
An implementation capability requirement is invalid.
Trait Implementations§
Source§impl Error for SpecError
impl Error for SpecError
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()
Source§impl From<SpecError> for RequestError
impl From<SpecError> for RequestError
impl Eq for SpecError
impl StructuralPartialEq for SpecError
Auto Trait Implementations§
impl Freeze for SpecError
impl RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl UnwindSafe for SpecError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.