pub enum ResultDecodeErrorKind {
InvalidJson,
BoundExceeded,
DuplicateMember,
ExpectedObject,
InvalidKnownMember,
InvalidDiscriminator,
MissingDiscriminator,
MissingInputRequest,
RejectedExtension,
KnownMemberCollision,
UnexpectedResultType,
}Expand description
Stable result-decoding failure categories.
Variants§
InvalidJson
The input did not contain exactly one complete JSON value.
BoundExceeded
A configured result bound was exceeded.
DuplicateMember
An object contained the same member name more than once.
ExpectedObject
The result envelope was not a JSON object.
InvalidKnownMember
A selected, known field has the wrong JSON kind.
InvalidDiscriminator
resultType was explicit null or another non-string value.
MissingDiscriminator
A modern result omitted its required resultType discriminator.
MissingInputRequest
input_required had neither inputRequests nor requestState.
RejectedExtension
A deferred extension was rejected by the supplied discriminator policy.
KnownMemberCollision
A local custom-extra request collided with a known member name.
UnexpectedResultType
A typed complete decoder was given a non-complete core result.
Trait Implementations§
Source§impl Clone for ResultDecodeErrorKind
impl Clone for ResultDecodeErrorKind
Source§fn clone(&self) -> ResultDecodeErrorKind
fn clone(&self) -> ResultDecodeErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResultDecodeErrorKind
Source§impl Debug for ResultDecodeErrorKind
impl Debug for ResultDecodeErrorKind
impl Eq for ResultDecodeErrorKind
Source§impl PartialEq for ResultDecodeErrorKind
impl PartialEq for ResultDecodeErrorKind
impl StructuralPartialEq for ResultDecodeErrorKind
Auto Trait Implementations§
impl Freeze for ResultDecodeErrorKind
impl RefUnwindSafe for ResultDecodeErrorKind
impl Send for ResultDecodeErrorKind
impl Sync for ResultDecodeErrorKind
impl Unpin for ResultDecodeErrorKind
impl UnsafeUnpin for ResultDecodeErrorKind
impl UnwindSafe for ResultDecodeErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).