[][src]Function toql_mysql::update_one

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

Update a single struct.

Optional fields with value None are not updated. See guide for details. The field that is used as key must be attributed with #[toql(delup_key)]. Returns the number of updated rows.