struct_serializer

struct_serializer#

Serializers and deserializers for struct related models.

We use custom Struct model instead of standard Struct from protobuf, since standard Struct doesn’t support integers but instead casts them always to floats.

Full path: iqm.station_control.client.serializers.struct_serializer

Functions

deserialize_struct(proto)

Deserialize a Struct protobuf representation into a free-form dict.

serialize_struct(data)

Serialize a free-form dict into a Struct protobuf representation.