Struct openssl::asn1::Asn1Object
source · [−]pub struct Asn1Object(_);
Expand description
Object Identifier
Represents an ASN.1 Object. Typically, NIDs, or numeric identifiers
are stored as a table within the Nid
module. These constants are
used to determine attributes of a certificate, such as mapping the
attribute “CommonName” to “CN” which is represented as the OID of 13.
This attribute is a constant in the nid::COMMONNAME
.
OpenSSL documentation at OBJ_nid2obj
Implementations
sourceimpl Asn1Object
impl Asn1Object
sourcepub fn from_str(txt: &str) -> Result<Asn1Object, ErrorStack>
pub fn from_str(txt: &str) -> Result<Asn1Object, ErrorStack>
Constructs an ASN.1 Object Identifier from a string representation of the OID.
This corresponds to OBJ_txt2obj
.
Methods from Deref<Target = Asn1ObjectRef>
Trait Implementations
sourceimpl AsRef<Asn1ObjectRef> for Asn1Object
impl AsRef<Asn1ObjectRef> for Asn1Object
sourcefn as_ref(&self) -> &Asn1ObjectRef
fn as_ref(&self) -> &Asn1ObjectRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<Asn1ObjectRef> for Asn1Object
impl Borrow<Asn1ObjectRef> for Asn1Object
sourcefn borrow(&self) -> &Asn1ObjectRef
fn borrow(&self) -> &Asn1ObjectRef
Immutably borrows from an owned value. Read more
sourceimpl Clone for Asn1Object
impl Clone for Asn1Object
sourcefn clone(&self) -> Asn1Object
fn clone(&self) -> Asn1Object
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Deref for Asn1Object
impl Deref for Asn1Object
type Target = Asn1ObjectRef
type Target = Asn1ObjectRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &Asn1ObjectRef
fn deref(&self) -> &Asn1ObjectRef
Dereferences the value.
sourceimpl DerefMut for Asn1Object
impl DerefMut for Asn1Object
sourcefn deref_mut(&mut self) -> &mut Asn1ObjectRef
fn deref_mut(&mut self) -> &mut Asn1ObjectRef
Mutably dereferences the value.
sourceimpl Drop for Asn1Object
impl Drop for Asn1Object
sourceimpl ForeignType for Asn1Object
impl ForeignType for Asn1Object
type CType = ASN1_OBJECT
type CType = ASN1_OBJECT
The raw C type.
type Ref = Asn1ObjectRef
type Ref = Asn1ObjectRef
The type representing a reference to this type.
sourceunsafe fn from_ptr(ptr: *mut ASN1_OBJECT) -> Asn1Object
unsafe fn from_ptr(ptr: *mut ASN1_OBJECT) -> Asn1Object
Constructs an instance of this type from its raw type.
sourcefn as_ptr(&self) -> *mut ASN1_OBJECT
fn as_ptr(&self) -> *mut ASN1_OBJECT
Returns a raw pointer to the wrapped value.
sourceimpl Stackable for Asn1Object
impl Stackable for Asn1Object
type StackType = stack_st_ASN1_OBJECT
type StackType = stack_st_ASN1_OBJECT
The C stack type for this element. Read more
impl Send for Asn1Object
impl Sync for Asn1Object
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more