RS.CLIPPY.SERDE_API_MISUSE

Various things that will negatively affect your serde experience

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: serde_api_misuse. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for misuses of the serde API.

Why is this bad?

Serde is very finicky about how its API should be used, but the type system can't be used to enforce it (yet?).

Example

Implementing Visitor::visit_string but not Visitor::visit_str.