pub trait Backend<Err>:
BackendEntry<User, Err>
+ BackendEntry<Comment, Err>
+ BackendEntry<Part, Err>
+ BackendEntry<Post, Err>
+ BackendEntry<Chapter, Err>
+ BackendEntry<Origin, Err>
+ BackendEntry<Warning, Err>
+ BackendEntry<Pairing, Err>
+ BackendEntry<Character, Err>
+ BackendEntry<Tag, Err>
+ BackendEntry<Story, Err>
+ BackendEntry<Series, Err>
+ BackendEntry<Category, Err>
+ BackendEntry<Page, Err>where
Err: Error,{
// Required method
fn migrate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Err>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A supported database backend that depends on a series of entries.
Requires that the backend also implements BackendEntry for these types
(sharing the same error type):