lemmy/lemmy_db/src/views/mod.rs

16 lines
299 B
Rust
Raw Normal View History

2020-12-15 15:28:25 +00:00
pub mod comment_view;
2020-12-16 21:28:18 +00:00
pub mod community;
pub mod moderator;
2020-12-10 20:53:49 +00:00
pub mod post_view;
2020-12-16 22:16:48 +00:00
pub mod private_message_view;
2020-12-02 19:32:47 +00:00
pub mod site_view;
2020-12-16 16:09:21 +00:00
pub mod user_mention_view;
2020-12-03 03:39:31 +00:00
pub mod user_view;
2020-12-11 01:39:42 +00:00
pub(crate) trait ViewToVec {
type DbTuple;
fn to_vec(tuple: Vec<Self::DbTuple>) -> Vec<Self>
where
Self: Sized;
}