pub fn update_item(id: i32, new_item: ItemDTO, conn: &PgConnection) -> bool {
        diesel::update(items::table.filter(items::item_id.eq(id)))
            .set((
                items::description.eq(new_item.description),
                items::finished.eq(new_item.finished),
            ))
            .execute(conn)
            .is_ok()
    }
/// Attempts to update the item with the given `id` to the values in `new_item`.
/// Returns true if successful or false otherwise.
Attempts to update the item with the given `id` to the values in `new_item`.
Returns true if successful or false otherwise.
Attempts to update the item with the given ` id ` to the values in ` new_item ` . Returns true if successful or false otherwise .
pub fn update_item(id: i32, new_item: ItemDTO, conn: &PgConnection) -> bool {
        diesel::update(items::table.filter(items::item_id.eq(id)))
            .set((
                items::description.eq(new_item.description),
                items::finished.eq(new_item.finished),
            ))
            .execute(conn)
            .is_ok()
    }
pub fn update_item ( id : i32 , new_item : ItemDTO , conn : & PgConnection ) -> bool { diesel :: update ( items :: table . filter ( items :: item_id . eq ( id ) ) ) . set ( ( items :: description . eq ( new_item . description ) , items :: finished . eq ( new_item . finished ) , ) ) . execute ( conn ) . is_ok ( ) }
Attempts to update the item with the given `id` to the values in `new_item`.
Attempts to update the item with the given ` id ` to the values in ` new_item ` .
id
i32
new_item
ItemDTO
conn
&PgConnection
id
i32
new_item
ItemDTO
conn
&PgConnection