Expand description
Pluggable serialization helpers | 可插拔序列化辅助函数
Thin wrappers around SharedSerializer that map errors into SaTokenError.
Prefer these when a module holds a serializer but not full [SaTokenConfig].
对 SharedSerializer 的薄封装,将错误映射为 SaTokenError。
模块仅持有序列化器、无完整 config 时优先使用。
Functions§
- decode_
value - Decode storage string; auto-detects JSON / binary magic | 解码存储字符串;自动探测 JSON / 二进制魔数
- encode_
value - Encode object to storage string | 将对象编码为存储字符串