Trait Document

Source
pub trait Document:
    Serialize
    + DeserializeOwned
    + Debug {
    type IDType: Display;

    // Required method
    fn get_id(&self) -> &Self::IDType;
}
Expand description

Userdefined Document MUST impl

Required Associated Types§

Required Methods§

Source

fn get_id(&self) -> &Self::IDType

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§