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

facet-rs / facet / 19937643187

04 Dec 2025 05:17PM UTC coverage: 57.694% (-0.3%) from 58.015%
19937643187

Pull #1067

github

web-flow
Merge 89938fe03 into 93a173fac
Pull Request #1067: feat: add Axum integration for Facet types

93 of 370 new or added lines in 18 files covered. (25.14%)

6 existing lines in 2 files now uncovered.

22729 of 39396 relevant lines covered (57.69%)

502.44 hits per line

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

0.0
/facet-msgpack/src/msgpack.rs
1
//! The `MsgPack<T>` wrapper type for MessagePack serialization/deserialization.
2

3
use core::fmt;
4
use core::ops::{Deref, DerefMut};
5

6
/// A wrapper type for MessagePack serialization and deserialization.
7
///
8
/// When the `axum` feature is enabled, this type implements Axum's
9
/// `FromRequest` and `IntoResponse` traits.
10
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
11
pub struct MsgPack<T>(pub T);
12

13
impl<T> MsgPack<T> {
14
    /// Consume the wrapper and return the inner value.
15
    #[inline]
NEW
16
    pub fn into_inner(self) -> T {
×
NEW
17
        self.0
×
NEW
18
    }
×
19
}
20

21
impl<T> From<T> for MsgPack<T> {
22
    #[inline]
NEW
23
    fn from(inner: T) -> Self {
×
NEW
24
        MsgPack(inner)
×
NEW
25
    }
×
26
}
27

28
impl<T> Deref for MsgPack<T> {
29
    type Target = T;
30

31
    #[inline]
NEW
32
    fn deref(&self) -> &Self::Target {
×
NEW
33
        &self.0
×
NEW
34
    }
×
35
}
36

37
impl<T> DerefMut for MsgPack<T> {
38
    #[inline]
NEW
39
    fn deref_mut(&mut self) -> &mut Self::Target {
×
NEW
40
        &mut self.0
×
NEW
41
    }
×
42
}
43

44
impl<T: fmt::Display> fmt::Display for MsgPack<T> {
NEW
45
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
×
NEW
46
        self.0.fmt(f)
×
NEW
47
    }
×
48
}
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