app.serializers.user.UserExportWordSerializer
- class app.serializers.user.UserExportWordSerializer(*, only: Optional[Union[Sequence[str], Set[str]]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Optional[Dict] = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: Optional[str] = None)
Bases:
flask_marshmallow.schema.Schema
Attributes
Overrides for default schema-level error messages
Methods
UserExportWordSerializer.__init__
(*[, only, ...])UserExportWordSerializer.dump
(obj, *[, many])Serialize an object to native Python data types according to this Schema's fields.
UserExportWordSerializer.dumps
(obj, *args[, ...])Same as
dump()
, except return a JSON-encoded string.UserExportWordSerializer.from_dict
(fields, *)Generate a Schema class given a dictionary of fields.
UserExportWordSerializer.get_attribute
(obj, ...)Defines how to pull values from an object to serialize.
UserExportWordSerializer.handle_error
(error, ...)Custom error handler function for the schema.
UserExportWordSerializer.jsonify
(obj[, many])Return a JSON response containing the serialized data.
UserExportWordSerializer.load
(data, *[, ...])Deserialize a data structure to an object defined by this Schema's fields.
UserExportWordSerializer.loads
(json_data, *)Same as
load()
, except it takes a JSON string as input.Hook to modify a field when it is bound to the Schema.
UserExportWordSerializer.validate
(data, *[, ...])Validate data against the schema, returning a dictionary of validation errors.