File: serde_as_issue_267.rs

package info (click to toggle)
rust-serde-with-macros 3.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
#![allow(missing_docs)]

use serde::Serialize;
use serde_with_macros::serde_as;

// The field has no serde_as annotation and should not trigger any error
#[serde_as(crate = "serde_with_macros")]
#[derive(Serialize)]
pub struct Thing {
    pub id: u8,
}