Trait Indexed

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

Source

fn default_collection_name() -> &'static str

Source

fn indexes() -> &'static [&'static str]

Source

fn unique_indexes() -> &'static [&'static str]

Source

fn sparse_indexes() -> &'static [&'static str]

Source

fn sparse_unique_indexes() -> &'static [&'static str]

Source

fn doc_indexes() -> Vec<Document>

Source

fn unique_doc_indexes() -> Vec<Document>

Source

fn sparse_doc_indexes() -> Vec<Document>

Source

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.

Implementors§