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

naomijub / serde_json_shape / 16107730782

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

Pull #9

github

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

13 of 113 new or added lines in 3 files covered. (11.5%)

488 of 1131 relevant lines covered (43.15%)

2.34 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 { value, shape }
7
    }
8
}
9

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

17
    /// Returns the [`JsonShape`] of the original [`serde_json::Value`]
18
    #[must_use]
NEW
19
    pub const fn shape(&self) -> &JsonShape {
×
20
        &self.shape
21
    }
22
}
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