[][src]Function toql_mysql::delete_one

pub fn delete_one<'a, T>(entity: &T, conn: &mut Conn) -> Result<u64, ToqlError> where
    T: 'a + Indelup<'a, T>, 

Delete a struct.

The field that is used as key must be attributed with #[toql(delup_key)]. Returns the number of deleted rows.