• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

naomijub / serde_json_shape / 16107706673

07 Jul 2025 04:35AM UTC coverage: 43.148% (-3.4%) from 46.555%
16107706673

Pull #9

github

web-flow
Merge e37820baf into 440d4eccd
Pull Request #9: JsonShape from serde_json::Value

16 of 112 new or added lines in 3 files covered. (14.29%)

488 of 1131 relevant lines covered (43.15%)

2.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/json_shape/src/serde/impls.rs
1
use crate::{serde::JsonVisitor, value::Value as JsonShape};
2

3
impl<'json> From<&'json serde_json::Value> for JsonVisitor<'json> {
NEW
4
    fn from(value: &'json serde_json::Value) -> Self {
×
NEW
5
        let shape = JsonShape::from(value);
×
6
        Self {
7
            value,
8
            shape,
9
        }
10
    }
11
}
12

13
impl JsonVisitor<'_> {
14
    /// Returns the original [`serde_json::Value`]
NEW
15
    #[must_use] pub const fn value(&self) -> &serde_json::Value {
×
NEW
16
        self.value
×
17
    }
18

19
    /// Returns the [`JsonShape`] of the original [`serde_json::Value`]
NEW
20
    #[must_use] pub const fn shape(&self) -> &JsonShape {
×
21
        &self.shape
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc