Type Alias spki::AlgorithmIdentifierWithOid
source · pub type AlgorithmIdentifierWithOid = AlgorithmIdentifier<ObjectIdentifier>;
Expand description
AlgorithmIdentifier
with ObjectIdentifier
parameters.
Aliased Type§
struct AlgorithmIdentifierWithOid {
pub oid: ObjectIdentifier,
pub parameters: Option<ObjectIdentifier>,
}
Fields§
§oid: ObjectIdentifier
Algorithm OID, i.e. the algorithm
field in the AlgorithmIdentifier
ASN.1 schema.
parameters: Option<ObjectIdentifier>
Algorithm parameters
.
Implementations
source§impl<Params> AlgorithmIdentifier<Params>
impl<Params> AlgorithmIdentifier<Params>
sourcepub fn assert_algorithm_oid(
&self,
expected_oid: ObjectIdentifier,
) -> Result<ObjectIdentifier>
pub fn assert_algorithm_oid( &self, expected_oid: ObjectIdentifier, ) -> Result<ObjectIdentifier>
Assert the algorithm
OID is an expected value.
Trait Implementations
source§impl<Params: Clone> Clone for AlgorithmIdentifier<Params>
impl<Params: Clone> Clone for AlgorithmIdentifier<Params>
source§fn clone(&self) -> AlgorithmIdentifier<Params>
fn clone(&self) -> AlgorithmIdentifier<Params>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Params: Debug> Debug for AlgorithmIdentifier<Params>
impl<Params: Debug> Debug for AlgorithmIdentifier<Params>
source§impl<'a, Params> DecodeValue<'a> for AlgorithmIdentifier<Params>where
Params: Choice<'a>,
impl<'a, Params> DecodeValue<'a> for AlgorithmIdentifier<Params>where
Params: Choice<'a>,
source§impl<Params> EncodeValue for AlgorithmIdentifier<Params>where
Params: Encode,
impl<Params> EncodeValue for AlgorithmIdentifier<Params>where
Params: Encode,
source§impl<Params: Ord> Ord for AlgorithmIdentifier<Params>
impl<Params: Ord> Ord for AlgorithmIdentifier<Params>
source§fn cmp(&self, other: &AlgorithmIdentifier<Params>) -> Ordering
fn cmp(&self, other: &AlgorithmIdentifier<Params>) -> Ordering
1.21.0 · 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<Params: PartialEq> PartialEq for AlgorithmIdentifier<Params>
impl<Params: PartialEq> PartialEq for AlgorithmIdentifier<Params>
source§fn eq(&self, other: &AlgorithmIdentifier<Params>) -> bool
fn eq(&self, other: &AlgorithmIdentifier<Params>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Params: PartialOrd> PartialOrd for AlgorithmIdentifier<Params>
impl<Params: PartialOrd> PartialOrd for AlgorithmIdentifier<Params>
source§fn partial_cmp(&self, other: &AlgorithmIdentifier<Params>) -> Option<Ordering>
fn partial_cmp(&self, other: &AlgorithmIdentifier<Params>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more