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 for RawAlgorithmIdentifier
impl PartialEq for RawAlgorithmIdentifier
Source§impl Serialize for RawAlgorithmIdentifier
impl Serialize for RawAlgorithmIdentifier
impl Eq for RawAlgorithmIdentifier
impl StructuralPartialEq for RawAlgorithmIdentifier
Auto Trait Implementations§
impl Freeze for RawAlgorithmIdentifier
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