Module rasn::types[][src]

Types

The types modules is a collection of Rust types and data structures that are defined to represent various ASN.1 data types, and renamed to use ASN.1’s terminology.

Structs

Explicit

A newtype wrapper that will explicitly tag its value with T’s tag.

Implicit

A newtype wrapper that will implicitly tag its value with T’s tag.

InstanceOf

An instance of a defined object class.

Integer

A big signed integer type.

ObjectIdentifier

A global unique identifier that identifies an concept, such as a organisation, or encoding rules.

OctetString

A reference counted contiguous slice of memory.

Tag

An abstract representation of the tag octets used in BER, CER, and DER to identify .

Utf8String

A UTF-8–encoded, growable string.

Enums

Class
Open

An “open” type representating any valid ASN.1 type.

Traits

AsnType

A trait representing any type that can represented in ASN.1.

Type Definitions

BitString

Alias for bitvec::BitVec mapped to ASN.1’a BIT STRING.

BmpString

String alias that matches BmpString BER’s encoding rules.

GeneralizedTime

Alias for chrono::DateTime<FixedOffset>.

IA5String

IA5String string alias that matches BER’s encoding rules.

PrintableString

PrintableString string alias that matches BER’s encoding rules.

SequenceOf

Alias to Vec<T>.

SetOf

Alias to Vec<T>.

UniversalString

UniversalString string alias that matches BER’s encoding rules.

UtcTime

Alias for chrono::DateTime<Utc>.

VisibleString

VisibleString string alias that matches BER’s encoding rules.

Derive Macros

AsnType

An automatic derive of the AsnType trait.