Debian Codegraph @

third_party/rust/serde_with_macros/tests/serde_as_issue_267.rs

raw
1 #![allow(missing_docs)]
2
3 use serde::Serialize;
4 use serde_with_macros::serde_as;
5
6 // The field has no serde_as annotation and should not trigger any error
7 #[serde_as(crate = "serde_with_macros")]
8 #[derive(Serialize)]
9 pub struct Thing {
10 pub id: u8,
11 }