pub trait IntoValidId<T> {
// Required method
fn into_valid(self) -> Result<T, O2Error>;
}Expand description
Trait for types that can be validated and converted into a hex ID newtype.
Implemented by &str, String (with hex validation) and the ID type itself (passthrough).