qubit-json 0.9.0

Resource-aware infrastructure for lenient and strict JSON processing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Defines the duplicate-field fixture used by decoder tests.

use serde::Deserialize;

/// Payload used to verify serde duplicate-field rejection.
#[derive(Debug, Deserialize)]
pub(crate) struct SingleValue {
    /// Stores the sole expected value.
    #[serde(rename = "value")]
    _value: u8,
}