sid2 0.4.1

Id schema that is: 128-bit (uuid compatible); sorted (won't explode database indexes); random (gen anywhere); readable (has object type and a "short" segment); and highlights on double click. Includes postgres extension.
Documentation
use crate::{NoLabel};

impl Label for NoLabel {
    fn label() -> &'static str {
        ""
    }
}

pub trait Label {
    fn label() -> &'static str;
}

#[macro_export]
macro_rules! label {
    ($name:ident, $label:literal) => {
        pub struct $name;
        impl Label for $name {
            fn label() -> &'static str {
                concat!($label)
            }
        }
    };
}