lemmy/lemmy_db/src/views/mod.rs

15 lines
269 B
Rust
Raw Normal View History

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