pub type AlgorithmIdentifierOwned = AlgorithmIdentifier<Any>;
Expand description
AlgorithmIdentifier
reference which has Any
parameters.
Aliased Type§
struct AlgorithmIdentifierOwned {
pub oid: ObjectIdentifier,
pub parameters: Option<Any>,
}
Fields§
§oid: ObjectIdentifier
Algorithm OID, i.e. the algorithm
field in the AlgorithmIdentifier
ASN.1 schema.
parameters: Option<Any>
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 OwnedToRef for AlgorithmIdentifierOwned
impl OwnedToRef for AlgorithmIdentifierOwned
Source§type Borrowed<'a> = AlgorithmIdentifier<AnyRef<'a>>
type Borrowed<'a> = AlgorithmIdentifier<AnyRef<'a>>
The resulting type referencing back to Self
Source§fn owned_to_ref(&self) -> Self::Borrowed<'_>
fn owned_to_ref(&self) -> Self::Borrowed<'_>
Creates a new object referencing back to the self for storage
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