HasCollectionName

Trait HasCollectionName 

Source
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§

Source

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.

Implementors§