pub trait HasCollectionName {
// Required method
fn collection_name() -> &'static str;
}Expand description
Trait for providing collection name for a type.
This trait is automatically implemented by the #[ngdb] macro.
It allows generic code to access the collection name.
Required Methods§
Sourcefn collection_name() -> &'static str
fn collection_name() -> &'static str
Returns the collection name for this type.
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.