TypeStructureField

class dsviper.TypeStructureField

Bases: object

One field of a struct type, as TypeStructure.fields(), query() and check() answer it.

Note: Not directly instantiable.

default_value(*, encoded: Literal[True] = True) → _OutputValues | None

Return the default value or None.

encoded=False returns a Value rather than a native object.

documentation() → str

Return the documentation the field was created with, empty when none was given.

name() → str

Return the field name as declared.

type() → Type

Return the type the field is declared with.