#[non_exhaustive]pub enum KeyDataStatus {
Unparsed,
Decoded,
DecodeError,
}Expand description
Inspection state for public-key bytes, separate from algorithm parameters.
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.
Unparsed
The algorithm or curve has no supported key representation here.
Decoded
Supported encoding/length was decoded; mathematical key validity is not checked.
DecodeError
A supported key encoding has invalid structure, length or unused bits.
Trait Implementations§
Source§impl Clone for KeyDataStatus
impl Clone for KeyDataStatus
Source§fn clone(&self) -> KeyDataStatus
fn clone(&self) -> KeyDataStatus
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 KeyDataStatus
Source§impl Debug for KeyDataStatus
impl Debug for KeyDataStatus
impl Eq for KeyDataStatus
Source§impl JsonSchema for KeyDataStatus
impl JsonSchema for KeyDataStatus
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 KeyDataStatus
impl PartialEq for KeyDataStatus
Source§impl Serialize for KeyDataStatus
impl Serialize for KeyDataStatus
impl StructuralPartialEq for KeyDataStatus
Auto Trait Implementations§
impl Freeze for KeyDataStatus
impl RefUnwindSafe for KeyDataStatus
impl Send for KeyDataStatus
impl Sync for KeyDataStatus
impl Unpin for KeyDataStatus
impl UnsafeUnpin for KeyDataStatus
impl UnwindSafe for KeyDataStatus
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