#[non_exhaustive]pub enum Es256PublicJwkError {
TooLarge,
Malformed,
DuplicateKey,
LimitExceeded,
MissingMember,
UnsupportedMember,
PrivateMaterialProhibited,
KeyMetadataProhibited,
UnsupportedKey,
InvalidCoordinate,
}Expand description
Redaction-safe local public-JWK rejection.
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.
TooLarge
The local JWK exceeded its fixed source ceiling.
Malformed
The JWK was not one bounded JSON object.
DuplicateKey
A JSON object contained a duplicate key.
LimitExceeded
JSON structural limits were exceeded.
MissingMember
One of the five required public members was absent.
UnsupportedMember
A member outside the closed V1 public subset was supplied.
PrivateMaterialProhibited
A private EC scalar was supplied.
KeyMetadataProhibited
Remote or embedded key-selection metadata was supplied.
UnsupportedKey
The declared key type, curve, or algorithm is outside V1.
InvalidCoordinate
A coordinate was padded, non-canonical, malformed, or not 32 bytes.
Trait Implementations§
Source§impl Clone for Es256PublicJwkError
impl Clone for Es256PublicJwkError
Source§fn clone(&self) -> Es256PublicJwkError
fn clone(&self) -> Es256PublicJwkError
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 Es256PublicJwkError
Source§impl Debug for Es256PublicJwkError
impl Debug for Es256PublicJwkError
Source§impl Display for Es256PublicJwkError
impl Display for Es256PublicJwkError
impl Eq for Es256PublicJwkError
Source§impl Error for Es256PublicJwkError
impl Error for Es256PublicJwkError
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 PartialEq for Es256PublicJwkError
impl PartialEq for Es256PublicJwkError
impl StructuralPartialEq for Es256PublicJwkError
Auto Trait Implementations§
impl Freeze for Es256PublicJwkError
impl RefUnwindSafe for Es256PublicJwkError
impl Send for Es256PublicJwkError
impl Sync for Es256PublicJwkError
impl Unpin for Es256PublicJwkError
impl UnsafeUnpin for Es256PublicJwkError
impl UnwindSafe for Es256PublicJwkError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
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
Checks if this value is equivalent to the given key. Read more
§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.§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
Checks if this value is equivalent to the given key. Read more