#[non_exhaustive]pub enum DisclosureError {
NotBase64,
NotJson,
NotATriple,
ReservedClaimName,
}Expand description
Anything that can go wrong reading a disclosure someone else produced.
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.
NotBase64
The string is not base64url.
NotJson
The decoded bytes are not JSON.
NotATriple
The JSON is not the three-element array clause 4.2.1 requires.
The two-element form (array-element disclosures, clause 4.2.2) is deliberately not accepted — see the module documentation.
ReservedClaimName
The claim name is one clause 4.2.1 forbids: _sd or ....
Trait Implementations§
Source§impl Debug for DisclosureError
impl Debug for DisclosureError
Source§impl Display for DisclosureError
impl Display for DisclosureError
impl Eq for DisclosureError
Source§impl Error for DisclosureError
impl Error for DisclosureError
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<DisclosureError> for SdJwtError
impl From<DisclosureError> for SdJwtError
Source§fn from(source: DisclosureError) -> Self
fn from(source: DisclosureError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisclosureError
impl PartialEq for DisclosureError
impl StructuralPartialEq for DisclosureError
Auto Trait Implementations§
impl Freeze for DisclosureError
impl RefUnwindSafe for DisclosureError
impl Send for DisclosureError
impl Sync for DisclosureError
impl Unpin for DisclosureError
impl UnsafeUnpin for DisclosureError
impl UnwindSafe for DisclosureError
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