pub fn cast<T: IsTable + IsDao>(&self) -> Vec<T> {
        let table = T::table_name();
        let mut obj = vec![];
        let renamed_columns = self.get_renamed_columns(&table.name);
        for dao in &self.dao {
            let mut dao_clone = dao.clone();
            dao_clone.correct_renamed_columns(&renamed_columns);
            let p = T::from_dao(&dao_clone);
            obj.push(p);
        }
        obj
    }
/// cast the dao to the specific struct instance
/// do not include if non nullable parts contains null
cast the dao to the specific struct instance
do not include if non nullable parts contains null
cast the dao to the specific struct instance do not include if non nullable parts contains null
pub fn cast<T: IsTable + IsDao>(&self) -> Vec<T> {
        let table = T::table_name();
        let mut obj = vec![];
        let renamed_columns = self.get_renamed_columns(&table.name);
        for dao in &self.dao {
            let mut dao_clone = dao.clone();
            dao_clone.correct_renamed_columns(&renamed_columns);
            let p = T::from_dao(&dao_clone);
            obj.push(p);
        }
        obj
    }
pub fn cast < T : IsTable + IsDao > ( & self ) -> Vec < T > { let table = T :: table_name ( ) ; let mut obj = vec ! [ ] ; let renamed_columns = self . get_renamed_columns ( & table . name ) ; for dao in & self . dao { let mut dao_clone = dao . clone ( ) ; dao_clone . correct_renamed_columns ( & renamed_columns ) ; let p = T :: from_dao ( & dao_clone ) ; obj . push ( p ) ; } obj }
cast the dao to the specific struct instance
do not include if non nullable parts contains null
cast the dao to the specific struct instance do not include if non nullable parts contains null
&self
&self