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