diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs index 6b7bdd009..118072cdc 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}; +/// Identifies a type with a given OID. +pub trait Identified { + /// The OID associated with this type. + const OID: ObjectIdentifier; +} + /// Object identifier (OID). /// /// OIDs are hierarchical structures consisting of "arcs", i.e. integer