RuntimeExactlyOne
yosoi.runtime_contracts.RuntimeExactlyOne
class RuntimeExactlyOne(ImmutableModel):
Carry the single value accepted for a required field.
Attributes: cardinality: Wire discriminator for exactly-one cardinality. value: Validated value; missing or repeated evidence cannot produce this variant.
Source: python/yosoi/runtime_contracts.py:92
Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Fields and class attributes
Section titled “Fields and class attributes”cardinality: Literal['exactly_one']
value: RuntimeValue