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

facet-rs / facet / 19777916522 / 1
58%
main: 58%

Build:
DEFAULT BRANCH: main
Ran 29 Nov 2025 02:51AM UTC
Files 152
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Nov 2025 02:49AM UTC coverage: 60.934% (-0.1%) from 61.03%
19777916522.1

push

github

fasterthanlime
Add from_value<T: Facet> to deserialize Value into typed values

This adds the missing piece for facet-value: the ability to deserialize
a dynamic Value into any type implementing Facet.

New functionality:
- `from_value<T: Facet>(value: Value) -> Result<T>` - main entry point
- `ValueError` and `ValueErrorKind` error types for detailed errors

Supports deserializing:
- Primitives (bool, i8-i128, u8-u128, f32, f64, String)
- Options (None from null, Some from non-null)
- Structs (from objects, with field defaults support)
- Enums (unit from string, tuple/struct variants from objects)
- Collections (Vec, HashMap, BTreeMap, HashSet, BTreeSet)
- Fixed-size arrays and tuples
- Smart pointers (Box, Arc, Rc)
- Nested types of any combination above

This completes the round-trip capability: you can now go from
typed Rust values -> Value -> typed Rust values.

17959 of 29473 relevant lines covered (60.93%)

153.06 hits per line

Source Files on job 19777916522.1
  • Tree
  • List 152
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19777916522
  • 87045c38 on github
  • Prev Job for on main (#19777793341.1)
  • Next Job for on main (#19778230403.1)
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