Module types

Source
Expand description

types contains representations for ASN.1’s basic types, such as BOOLEANs or SEQUENCEs.

Structs§

BitString
Representation of an ASN1 BIT STRING data element with corresponding constraints and distinguished values defining the individual bits. As defined in Rec. ITU-T X.680 (02/2021) §22
Boolean
Representation of an ASN1 BOOLEAN data element with corresponding constraints. As defined in Rec. ITU-T X.680 (02/2021) §18
CharacterString
Representation of an ASN1 Character String type data element with corresponding constraints. ASN1 Character String types include IA5String, UTF8String, VideotexString. As defined in Rec. ITU-T X.680 (02/2021) §39-§44
Choice
Representation of an ASN1 CHOICE data element with corresponding members and extension information. As defined in Rec. ITU-T X.680 (02/2021) §29
ChoiceOption
Representation of an single ASN1 CHOICE option.
ChoiceSelectionType
Representation of a ASN1 selection type as used with ASN1 CHOICEs As defined in Rec. ITU-T X.680 (02/2021) §30
DistinguishedValue
Representation of a ASN1 distinguished value, as seen in some INTEGER and BIT STRING declarations As defined in Rec. ITU-T X.680 (02/2021) §19.5 and §22.4
Enumeral
Representation of a single member/enumeral of an ASN1 ENUMERATED data element.
Enumerated
Representation of an ASN1 ENUMERATED data element with corresponding enumerals and extension information. As defined in Rec. ITU-T X.680 (02/2021) §20
GeneralizedTime
Representation of an ASN1 GeneralizedTime data element with corresponding constraints. As defined in Rec. ITU-T X.680 (02/2021) §46
Integer
Representation of an ASN1 INTEGER data element with corresponding constraints and distinguished values. As defined in Rec. ITU-T X.680 (02/2021) §19
ObjectIdentifier
Representation of an ASN1 OBJECT IDENTIFIER data element with corresponding constraints. As defined in Rec. ITU-T X.680 (02/2021) §32
OctetString
Representation of an ASN1 OCTET STRING data element with corresponding constraints. As defined in Rec. ITU-T X.680 (02/2021) §23
Real
Representation of an ASN1 REAL data element with corresponding constraints. As defined in Rec. ITU-T X.680 (02/2021) §21
SequenceOrSet
Representation of an ASN1 SEQUENCE or SET data element with corresponding members and extension information. Whether the struct describes a SEQUENCE or a SET is identified by the ASN1Type enum variant that holds this struct as a value (i.e. ASN1Type::Set(SequenceOrSet { .. }) or ASN1Type::Sequence(SequenceOrSet { .. })). As defined in Rec. ITU-T X.680 (02/2021) §25 and §27
SequenceOrSetMember
Representation of an single ASN1 SEQUENCE or SET member.
SequenceOrSetOf
Representation of an ASN1 SEQUENCE OF and SET OF data element with corresponding constraints and element type info Whether the struct describes a SEQUENCE OF or a SET OF is identified by the ASN1Type enum variant that holds this struct as a value (i.e. ASN1Type::SetOf(SequenceOrSetOf { .. }) or ASN1Type::SequenceOf(SequenceOrSetOf { .. })). As defined in Rec. ITU-T X.680 (02/2021) §26 and §28
Time
Representation of an ASN1 TIME data element with corresponding constraints. As defined in Rec. ITU-T X.680 (02/2021) §38
UTCTime
Representation of an ASN1 Universal time (a.k.a UTCTime) data element with corresponding constraints. As defined in Rec. ITU-T X.680 (02/2021) §47

Enums§

SequenceComponent
Intermediate parsing type to parse COMPONENTS OF notation. SequenceComponent is an intermediary type that implementors of a [Backend] will usually not interact with. When parsing the body of an ASN.1 SEQUENCE or SET, the lexer distinguishes between a group of members (SequenceComponent::ComponentsOf) that is imnported from another ASN.1 data element using the COMPONENTS OF notation (i.e. Extending-Sequence ::= SEQUENCE { COMPONENTS OF Another-Sequence, added-field BOOLEAN }) and the regular member declaration (SequenceComponent::Member) (i.e. Simple-Sequence ::= SEQUENCE { field BOOLEAN }). When the lexer assembles the complete SequenceOrSet struct, it groups the parsed SequenceComponent items into the members and components_of fields of the SequenceOrSet struct. The linker will subsequently try to resolve the components_of identifiers.

Traits§

Constrainable
Trait shared by all ASN1 types that can be constrained a.k.a subtyped. See also Rec. ITU-T X.680 (02/2021) §49 - §51
IterNameTypes
Trait shared by ASN1 SET, SEQUENCE, AND CHOICE that allows iterating over their field types.