statime-config 0.1.0

Full-featured implementation of NTP with NTS support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Whether a node carries no information and can be omitted when serializing.
pub trait EffectivelyUnset {
    fn is_effectively_unset(&self) -> bool;
}

/// Helper function for `#[serde(skip_serializing_if = ...)]` on every field of a
/// partial struct.
pub fn is_effectively_unset<T>(value: &T) -> bool
where
    T: EffectivelyUnset,
{
    value.is_effectively_unset()
}