# openssl::asn1::Asn1Type - Rust
API documentation for the Rust `Asn1Type` struct in crate `openssl`.
Keywords: rust, rustlang, rust-lang, Asn1Type

# [−] [src] Struct openssl::asn1::Asn1Type

    pub struct Asn1Type(_);

The type of an ASN.1 value.

## Implementations

### `impl Asn1Type` [src]

#### `pub const EOC: Asn1Type` [src]

#### `pub const BOOLEAN: Asn1Type` [src]

#### `pub const INTEGER: Asn1Type` [src]

#### `pub const BIT_STRING: Asn1Type` [src]

#### `pub const OCTET_STRING: Asn1Type` [src]

#### `pub const NULL: Asn1Type` [src]

#### `pub const OBJECT: Asn1Type` [src]

#### `pub const OBJECT_DESCRIPTOR: Asn1Type` [src]

#### `pub const EXTERNAL: Asn1Type` [src]

#### `pub const REAL: Asn1Type` [src]

#### `pub const ENUMERATED: Asn1Type` [src]

#### `pub const UTF8STRING: Asn1Type` [src]

#### `pub const SEQUENCE: Asn1Type` [src]

#### `pub const SET: Asn1Type` [src]

#### `pub const NUMERICSTRING: Asn1Type` [src]

#### `pub const PRINTABLESTRING: Asn1Type` [src]

#### `pub const T61STRING: Asn1Type` [src]

#### `pub const TELETEXSTRING: Asn1Type` [src]

#### `pub const VIDEOTEXSTRING: Asn1Type` [src]

#### `pub const IA5STRING: Asn1Type` [src]

#### `pub const UTCTIME: Asn1Type` [src]

#### `pub const GENERALIZEDTIME: Asn1Type` [src]

#### `pub const GRAPHICSTRING: Asn1Type` [src]

#### `pub const ISO64STRING: Asn1Type` [src]

#### `pub const VISIBLESTRING: Asn1Type` [src]

#### `pub const GENERALSTRING: Asn1Type` [src]

#### `pub const UNIVERSALSTRING: Asn1Type` [src]

#### `pub const BMPSTRING: Asn1Type` [src]

#### `pub fn from_raw(value: c_int) -> Self` [src]

Constructs an `Asn1Type` from a raw OpenSSL value.

#### `pub fn as_raw(&self) -> c_int` [src]

Returns the raw OpenSSL value represented by this type.

## Trait Implementations

### `impl Clone for Asn1Type` [src]

#### `fn clone(&self) -> Asn1Type` [src]

Returns a copy of the value. Read more

#### `pub fn clone_from(&mut self, source: &Self)`1.0.0 [src]

Performs copy-assignment from `source`. Read more

### `impl Copy for Asn1Type` [src]

### `impl Debug for Asn1Type` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

Formats the value using the given formatter. Read more

### `impl Eq for Asn1Type` [src]

### `impl PartialEq<Asn1Type> for Asn1Type` [src]

#### `fn eq(&self, other: &Asn1Type) -> bool` [src]

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, other: &Asn1Type) -> bool` [src]

This method tests for `!=`.

### `impl StructuralEq for Asn1Type` [src]

### `impl StructuralPartialEq for Asn1Type` [src]

## Auto Trait Implementations

### `impl RefUnwindSafe for Asn1Type` [src]

### `impl Send for Asn1Type` [src]

### `impl Sync for Asn1Type` [src]

### `impl Unpin for Asn1Type` [src]

### `impl UnwindSafe for Asn1Type` [src]

## Blanket Implementations

### `impl<T> Any for T where
T: 'static + ?Sized,` [src]

#### `pub fn type_id(&self) -> TypeId` [src]

Gets the `TypeId` of `self`. Read more

### `impl<T> Borrow<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow(&self) -> &T` [src]

Immutably borrows from an owned value. Read more

### `impl<T> BorrowMut<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow_mut(&mut self) -> &mut T` [src]

Mutably borrows from an owned value. Read more

### `impl<T> From<T> for T` [src]

#### `pub fn from(t: T) -> T` [src]

Performs the conversion.

### `impl<T, U> Into<U> for T where
U: From<T>,` [src]

#### `pub fn into(self) -> U` [src]

Performs the conversion.

### `impl<T> ToOwned for T where
T: Clone,` [src]

#### `type Owned = T`

The resulting type after obtaining ownership.

#### `pub fn to_owned(&self) -> T` [src]

Creates owned data from borrowed data, usually by cloning. Read more

#### `pub fn clone_into(&self, target: &mut T)` [src]

🔬 This is a nightly-only experimental API. (`toowned_clone_into`)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

### `impl<T, U> TryFrom<U> for T where
U: Into<T>,` [src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

#### `pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>` [src]

Performs the conversion.

### `impl<T, U> TryInto<U> for T where
U: TryFrom<T>,` [src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.

#### `pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>` [src]

Performs the conversion.