pub trait Identifiable {
    type Id: Clone + DeserializeOwned + Eq + Hash + Send + Serialize + Sync + 'static;

    // Required method
    fn id(&self) -> &Self::Id;
}

Required Associated Types§

source

type Id: Clone + DeserializeOwned + Eq + Hash + Send + Serialize + Sync + 'static

Required Methods§

source

fn id(&self) -> &Self::Id

Implementors§

source§

impl<T, Id> Identifiable for Twhere for<'a> &'a T: Identifiable<Id = &'a Id>, Id: Clone + DeserializeOwned + Eq + Hash + Send + Serialize + Sync + 'static,

Available on crate feature diesel-storage-backend only.
§

type Id = Id