adaptix.integrations.msgspec package¶
Module contents¶
- adaptix.integrations.msgspec.native_msgspec(
- *preds: str | Pattern | type | Any | LocStackChecker | LocStackPattern,
- convert: ConvertParams | None = None,
- to_builtins: ToBuiltinsParams | None = None,
Provider that represents value via msgspec. You can use this function to validate or serialize msgspec structs via msgspec itself. Provider calls
convertandto_builtinsfor a type to load and dump data.- Parameters:
preds – Predicates specifying where the provider should be used. The provider will be applied if any predicates meet the conditions, if no predicates are passed, the provider will be used for all Enums. See Predicate system for details.
convert – Dict directly unpacked to
convert()functionto_builtins – Dict directly unpacked to
to_builtins()function
- Returns:
Desired provider