Create entry from OID string (for OIDs not in oid-registry)
(
nid: i32,
short_name: &'static str,
long_name: &'static str,
oid_str: &'static str,
)
| 49 | |
| 50 | /// Create entry from OID string (for OIDs not in oid-registry) |
| 51 | pub const fn from_string( |
| 52 | nid: i32, |
| 53 | short_name: &'static str, |
| 54 | long_name: &'static str, |
| 55 | oid_str: &'static str, |
| 56 | ) -> Self { |
| 57 | Self { |
| 58 | nid, |
| 59 | short_name, |
| 60 | long_name, |
| 61 | oid: OidRef::String(oid_str), |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /// Get OID as string (e.g., "2.5.4.3") |
| 66 | pub fn oid_string(&self) -> String { |