DefaultedNamedType¶
- class pyasn1.type.namedtype.DefaultedNamedType(name: str, asn1Object: Any, openType: Any = None)¶
Create named field object for a constructed ASN.1 type.
The DefaultedNamedType object represents a single name and ASN.1 type of a constructed ASN.1 type.
DefaultedNamedType objects are immutable and duck-type Python
tupleobjects holding name and asn1Object components.- Parameters:
name (
str) – Field nameasn1Object – ASN.1 type object
Construct a NamedType from name, asn1Object and optional openType.
Note
The DefaultedNamedType class models named field of a constructed ASN.1 type which has a default value.
The DefaultedNamedType objects are normally utilized by the NamedTypes objects to model individual fields of the constructed ASN.1 types.