diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs index 6b7bdd009..62258cc08 100644 --- a/const-oid/src/lib.rs +++ b/const-oid/src/lib.rs @@ -29,6 +29,12 @@ pub use crate::{ use crate::encoder::Encoder; use core::{fmt, str::FromStr}; +/// A trait which associates an OID with a type. +pub trait AssociatedOid { + /// The OID associated with this type. + const OID: ObjectIdentifier; +} + /// Object identifier (OID). /// /// OIDs are hierarchical structures consisting of "arcs", i.e. integer