pub struct RawAlgorithmIdentifier { /* private fields */ }
Expand description
Raw representation of AlgorithmIdentifier
ASN.1 type to allow parsing unknown algorithms.
Implementations§
source§impl RawAlgorithmIdentifier
impl RawAlgorithmIdentifier
sourcepub fn from_parts(
algorithm: ObjectIdentifier,
parameters: Option<Asn1RawDer>
) -> Self
pub fn from_parts( algorithm: ObjectIdentifier, parameters: Option<Asn1RawDer> ) -> Self
Create new RawAlgorithmIdentifier
from algorithm OID and optional parameters.
pub fn algorithm(&self) -> &ObjectIdentifier
pub fn parameters(&self) -> Option<&Asn1RawDer>
Trait Implementations§
source§impl Clone for RawAlgorithmIdentifier
impl Clone for RawAlgorithmIdentifier
source§fn clone(&self) -> RawAlgorithmIdentifier
fn clone(&self) -> RawAlgorithmIdentifier
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 Debug for RawAlgorithmIdentifier
impl Debug for RawAlgorithmIdentifier
source§impl<'de> Deserialize<'de> for RawAlgorithmIdentifier
impl<'de> Deserialize<'de> for RawAlgorithmIdentifier
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 PartialEq<RawAlgorithmIdentifier> for RawAlgorithmIdentifier
impl PartialEq<RawAlgorithmIdentifier> for RawAlgorithmIdentifier
source§fn eq(&self, other: &RawAlgorithmIdentifier) -> bool
fn eq(&self, other: &RawAlgorithmIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RawAlgorithmIdentifier
impl Serialize for RawAlgorithmIdentifier
impl Eq for RawAlgorithmIdentifier
impl StructuralEq for RawAlgorithmIdentifier
impl StructuralPartialEq for RawAlgorithmIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for RawAlgorithmIdentifier
impl Send for RawAlgorithmIdentifier
impl Sync for RawAlgorithmIdentifier
impl Unpin for RawAlgorithmIdentifier
impl UnwindSafe for RawAlgorithmIdentifier
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