pub enum SigningMethod {
ECDSAsecp192k1SHA256,
ECDSAsecp256k1SHA256,
ECDSAsecp192r1SHA256,
ECDSAsecp256r1SHA256,
ECDSAbrainpool256r1SHA256,
ECDSAsecp384r1SHA256,
ECDSAbrainpool384r1SHA256,
}Expand description
Standardized signingMethod values, for ISO 15118 price schedule signatures.
A closed set: it holds only the values the specification
defines. The wire field is a string, so a deployment can still
send something else – from_wire returns None for that,
which is not by itself a protocol error.
Variants§
ECDSAsecp192k1SHA256
ECDSAsecp256k1SHA256
ECDSAsecp192r1SHA256
ECDSAsecp256r1SHA256
ECDSAbrainpool256r1SHA256
ECDSAsecp384r1SHA256
ECDSAbrainpool384r1SHA256
Implementations§
Source§impl SigningMethod
impl SigningMethod
Sourcepub const ALL: &'static [Self]
pub const ALL: &'static [Self]
Every value this version’s specification defines (7), in spec order.
Sourcepub fn from_wire(value: &str) -> Option<Self>
pub fn from_wire(value: &str) -> Option<Self>
Parses a wire value, returning None for values the
specification doesn’t define (e.g. a vendor’s own).
Sourcepub const fn key_length(&self) -> Option<&'static str>
pub const fn key_length(&self) -> Option<&'static str>
The key length, as the spec states it.
Sourcepub const fn hash_algorithm(&self) -> Option<&'static str>
pub const fn hash_algorithm(&self) -> Option<&'static str>
The hash algorithm paired with the signature.
Trait Implementations§
Source§impl Clone for SigningMethod
impl Clone for SigningMethod
Source§fn clone(&self) -> SigningMethod
fn clone(&self) -> SigningMethod
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 SigningMethod
Source§impl Debug for SigningMethod
impl Debug for SigningMethod
Source§impl<'de> Deserialize<'de> for SigningMethod
impl<'de> Deserialize<'de> for SigningMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SigningMethod
impl Display for SigningMethod
impl Eq for SigningMethod
Source§impl FromStr for SigningMethod
impl FromStr for SigningMethod
Source§impl Hash for SigningMethod
impl Hash for SigningMethod
Source§impl Ord for SigningMethod
impl Ord for SigningMethod
Source§fn cmp(&self, other: &SigningMethod) -> Ordering
fn cmp(&self, other: &SigningMethod) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SigningMethod
impl PartialEq for SigningMethod
Source§impl PartialOrd for SigningMethod
impl PartialOrd for SigningMethod
Source§impl Serialize for SigningMethod
impl Serialize for SigningMethod
impl StructuralPartialEq for SigningMethod
Auto Trait Implementations§
impl Freeze for SigningMethod
impl RefUnwindSafe for SigningMethod
impl Send for SigningMethod
impl Sync for SigningMethod
impl Unpin for SigningMethod
impl UnsafeUnpin for SigningMethod
impl UnwindSafe for SigningMethod
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