fastcs.transport.rest.util#

Members

cast_from_rest_type

Casts from a rest value to an attribute datatype.

cast_to_rest_type

Casts from an attribute value to a rest value.

convert_datatype

Converts a datatype to a rest serialisable type.

fastcs.transport.rest.util.convert_datatype(datatype: DataType[T]) type[source]#

Converts a datatype to a rest serialisable type.

fastcs.transport.rest.util.cast_to_rest_type(datatype: DataType[T], value: T) object[source]#

Casts from an attribute value to a rest value.

fastcs.transport.rest.util.cast_from_rest_type(datatype: DataType[T], value: object) T[source]#

Casts from a rest value to an attribute datatype.