#[non_exhaustive]pub enum DecodeIssue {
InvalidEncoding,
UnsupportedEncoding,
RepresentationLimit,
UnknownType,
Unclassified,
}Expand description
Why a field could not be decoded; none of these categories is a trust verdict.
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.
InvalidEncoding
Invalid structure, length, character encoding, or trailing data.
UnsupportedEncoding
The field uses a recognized but unimplemented encoding/choice.
RepresentationLimit
A backend cannot represent the encoded value or resource depth.
UnknownType
The OID/algorithm has no registered field decoder.
Unclassified
An older backend path does not expose a more precise failure category.
Trait Implementations§
Source§impl Clone for DecodeIssue
impl Clone for DecodeIssue
Source§fn clone(&self) -> DecodeIssue
fn clone(&self) -> DecodeIssue
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 DecodeIssue
Source§impl Debug for DecodeIssue
impl Debug for DecodeIssue
impl Eq for DecodeIssue
Source§impl JsonSchema for DecodeIssue
impl JsonSchema for DecodeIssue
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DecodeIssue
impl PartialEq for DecodeIssue
Source§impl Serialize for DecodeIssue
impl Serialize for DecodeIssue
impl StructuralPartialEq for DecodeIssue
Auto Trait Implementations§
impl Freeze for DecodeIssue
impl RefUnwindSafe for DecodeIssue
impl Send for DecodeIssue
impl Sync for DecodeIssue
impl Unpin for DecodeIssue
impl UnsafeUnpin for DecodeIssue
impl UnwindSafe for DecodeIssue
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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