rusmpp_core/values/
dest_addr_np_resolution.rs1use rusmpp_macros::Rusmpp;
2
3#[repr(u8)]
4#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord, Default, Rusmpp)]
5#[cfg_attr(feature = "arbitrary", derive(::arbitrary::Arbitrary))]
6#[cfg_attr(feature = "serde", derive(::serde::Serialize))]
7#[cfg_attr(feature = "serde-deserialize-unchecked", derive(::serde::Deserialize))]
8pub enum DestAddrNpResolution {
9 #[default]
10 QueryNotPerformed = 0,
11 QueryPerformedNumberNotPorted = 1,
12 QueryPerformedNumberPorted = 2,
13 Other(u8),
14}
15
16#[cfg(test)]
17mod tests {
18 use super::*;
19
20 #[test]
21 fn encode_decode() {
22 #[cfg(feature = "alloc")]
23 crate::tests::owned::encode_decode_test_instances::<DestAddrNpResolution>();
24 crate::tests::borrowed::encode_decode_test_instances::<DestAddrNpResolution>();
25 }
26}