arel 0.0.2

simulate rails arel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::traits::ModelAble;
use std::marker::PhantomData;

#[derive(Clone, Debug)]
pub struct Source<T: ModelAble> {
    _marker: PhantomData<T>
}

impl<T> Source<T> where T: ModelAble {
    pub fn new() -> Self {
        Self {
            _marker: PhantomData,
        }
    }
}