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.
Re-exports§
pub use self::constraints::Constraint;
pub use self::constraints::Constraints;
pub use self::constraints::Extensible;
Modules§
Structs§
- Any
- Represents a complete encoded ASN.1 value of any type. Usually identified
with an
ObjectIdentifier
. - BmpString
- A Basic Multilingual Plane (BMP) string, which is a subtype of
UniversalString
containing only the BMP set of characters. - Constrained
Integer - A integer which has encoded constraint range between
START
andEND
. - Explicit
- A newtype wrapper that will explicitly tag its value with
T
’s tag. - Fixed
Octet String - General
String - A “general” string containing the
C0
Controls plane,SPACE
, Basic Latin,DELETE
, and Latin-1 Supplement characters. - Ia5String
- An string which only contains ASCII characters.
- Implicit
- A newtype wrapper that will implicitly tag its value with
T
’s tag. - Instance
Of - An instance of a defined object class.
- Integer
- A big signed integer type.
- Numeric
String - A string which can only contain numbers or
SPACE
characters. - Object
Identifier - A global unique identifier that identifies an concept, such as a
organisation, or encoding rules. The “owned” version of
Oid
. - Octet
String - A cheaply cloneable and sliceable chunk of contiguous memory.
- Oid
- A reference to a global unique identifier that identifies an concept, such as a organisation, or encoding rules.
- Printable
String - A string, which contains the characters defined in X.680 41.4 Section, Table 10.
- Tag
- An abstract representation of an ASN.1 tag that uniquely identifies a type within a ASN.1 module for codecs.
- Teletex
String - A string, which contains the characters defined in T.61 standard.
- Utf8
String - A UTF-8–encoded, growable string.
- Visible
String - A string which contains a subset of the ISO 646 character set.
Type should be constructed by using
try_from
orfrom
methods.
Enums§
- Class
- The class of tag identifying its category.
- Open
- An “open” type representing any valid ASN.1 type.
- TagTree
- The root or node in tree representing 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 ofChoice
.
Traits§
- AsnType
- A trait representing any type that can represented in ASN.1.
- Choice
- A
CHOICE
value. - Constructed
- A
SET
orSEQUENCE
value. - Decode
Choice - A
CHOICE
value. - Enumerated
- A
ENUMERATED
value. - Integer
Type
Type Aliases§
- BitStr
- A reference to a
BIT STRING
type. - BitString
- The
BIT STRING
type. /// ## Usage ASN1 declaration such as … - Fixed
BitString - A fixed length
BIT STRING
type. - Generalized
Time - The
GeneralizedTime
type. - Sequence
Of - The
SEQUENCE OF
type. - SetOf
- The
SET OF
type. - Universal
String - The
UniversalString
type. - UtcTime
- The
UTCTime
type.
Derive Macros§
- AsnType
- An automatic derive of the
AsnType
trait.