usedeku::prelude::*;useserde::{Deserialize, Serialize};/// Information Element identifier consisting of an ID and optional extension ID.
////// Used internally for IE type discrimination during parsing.
/// Standard IEs use only `id`, while extended IEs (id=255) also have `id_ext`.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default, DekuWrite, Serialize, Deserialize)]pubstructIeId{/// The Information Element ID.
#[deku(skip)]pubid:u8,
/// The extension ID for extended Information Elements.
#[deku(skip)]pubid_ext:Option<u8>,
}implIeId{/// Creates a new Information Element identifier.
pubconstfnnew(id:u8, id_ext:Option<u8>)->Self{Self{ id, id_ext }}}