class documentation
class PydanticPayloadConverter(CompositePayloadConverter): (source)
Constructor: PydanticPayloadConverter()
Payload converter for payloads containing pydantic model instances.
JSON conversion is replaced with a converter that uses
PydanticJSONPlainPayloadConverter
.
Method | __init__ |
Initialize object |
Inherited from CompositePayloadConverter
:
Method | from |
Decode values trying each converter. |
Method | to |
Encode values trying each converter. |
Instance Variable | converters |
List of payload converters to delegate to, in order. |
Inherited from PayloadConverter
(via CompositePayloadConverter
):
Method | from |
Convert a single payload to a value. |
Method | from |
from_payloads for the temporalio.api.common.v1.Payloads wrapper. |
Method | to |
Convert a single value to a payload. |
Method | to |
to_payloads for the temporalio.api.common.v1.Payloads wrapper. |
Class Variable | default |
Default payload converter. |