1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use conjure_object::serde::{de, ser};
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
pub struct ReferenceAliasExample(pub super::AnyExample);
impl std::ops::Deref for ReferenceAliasExample {
    type Target = super::AnyExample;
    #[inline]
    fn deref(&self) -> &super::AnyExample {
        &self.0
    }
}
impl std::ops::DerefMut for ReferenceAliasExample {
    #[inline]
    fn deref_mut(&mut self) -> &mut super::AnyExample {
        &mut self.0
    }
}
impl ser::Serialize for ReferenceAliasExample {
    fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error>
    where
        S: ser::Serializer,
    {
        self.0.serialize(s)
    }
}
impl<'de> de::Deserialize<'de> for ReferenceAliasExample {
    fn deserialize<D>(d: D) -> Result<ReferenceAliasExample, D::Error>
    where
        D: de::Deserializer<'de>,
    {
        de::Deserialize::deserialize(d).map(ReferenceAliasExample)
    }
}