pub trait AsnType {
const TAG: Tag;
const TAG_TREE: TagTree = _;
const CONSTRAINTS: Constraints<'static> = Constraints::NONE;
const IDENTIFIER: Option<&'static str> = None;
}
Expand description
A trait representing any type that can represented in ASN.1.
Required Associated Constants§
sourceconst TAG: Tag
const TAG: Tag
The associated tag for the type.
Note When implementing CHOICE types, this should be set to
Tag::EOC
and instead set the Self::TAG_TREE
constant to contain
all variants.
Provided Associated Constants§
sourceconst TAG_TREE: TagTree = _
const TAG_TREE: TagTree = _
The root of this type’s tree of tag’s if it a CHOICE type, otherwise its
Leaf
that points Self::TAG
.
const CONSTRAINTS: Constraints<'static> = Constraints::NONE
sourceconst IDENTIFIER: Option<&'static str> = None
const IDENTIFIER: Option<&'static str> = None
Identifier of an ASN.1 type as specified in the original specification
if not identical with the identifier of Self
Object Safety§
This trait is not object safe.