Module rasn::types

source · []
Expand description

ASN.1 Data 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

Represents a complete encoded ASN.1 value of any type. Usually identified with an ObjectIdentifier.

A temporary workaround for Oid not currently being const compatible.

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

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

An instance of a defined object class.

A big signed integer type.

A global unique identifier that identifies an concept, such as a organisation, or encoding rules. The “owned” version of Oid.

A cheaply cloneable and sliceable chunk of contiguous memory.

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

An abstract representation of an ASN.1 tag that uniquely identifies a type within a ASN.1 module for codecs.

A UTF-8–encoded, growable string.

Enums

The class of tag identifying its category.

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

The root or node in tree reprensenting all of potential tags in a ASN.1 type. For most types this is only ever one level deep, except for CHOICE enums which will contain a set of nodes, that either point to a Leaf or another level of Choice.

Traits

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

Type Definitions

The BIT STRING type.

The BmpString type.

The GeneralString type.

The GeneralizedTime type.

The Ia5String type.

The NumericString type.

The PrintableString type.

The SEQUENCE OF type.

The SET OF type.

The TeletexString type.

The UniversalString type.

The UTCTime type.

The VisibleString type.

Derive Macros

An automatic derive of the AsnType trait.