Prefix

Trait Prefix 

Source
pub trait Prefix {
    const VALUE: &'static str;
}
Expand description

A trait that defines the prefix string for a specific ID type.

This is typically implemented by zero-sized unit structs.

Required Associated Constants§

Source

const VALUE: &'static str

The string prefix (e.g., “user”, “order”). Note: The library automatically adds the underscore separator.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§