pub trait Indexed:
Serialize
+ DeserializeOwned
+ Send
+ Sync {
// Required methods
fn default_collection_name() -> &'static str;
fn indexes() -> &'static [&'static str];
fn unique_indexes() -> &'static [&'static str];
fn sparse_indexes() -> &'static [&'static str];
fn sparse_unique_indexes() -> &'static [&'static str];
fn doc_indexes() -> Vec<Document>;
fn unique_doc_indexes() -> Vec<Document>;
fn sparse_doc_indexes() -> Vec<Document>;
fn sparse_unique_doc_indexes() -> Vec<Document>;
}
Required Methods§
fn default_collection_name() -> &'static str
fn indexes() -> &'static [&'static str]
fn unique_indexes() -> &'static [&'static str]
fn sparse_indexes() -> &'static [&'static str]
fn sparse_unique_indexes() -> &'static [&'static str]
fn doc_indexes() -> Vec<Document>
fn unique_doc_indexes() -> Vec<Document>
fn sparse_doc_indexes() -> Vec<Document>
fn sparse_unique_doc_indexes() -> Vec<Document>
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.