pub fn update_list(id: i32, new_list: ListDTO, conn: &PgConnection) -> bool {
        diesel::update(lists.filter(lists::list_id.eq(id)))
            .set((
                lists::name.eq(new_list.name),
                lists::description.eq(new_list.description)
            ))
            .execute(conn)
            .is_ok()
    }
/// Attempts to update the list with the given `id` to the new values in `new_list`.
/// Returns true if successful, or false otherwise.
Attempts to update the list with the given `id` to the new values in `new_list`.
Returns true if successful, or false otherwise.
Attempts to update the list with the given ` id ` to the new values in ` new_list ` . Returns true if successful or false otherwise .
pub fn update_list(id: i32, new_list: ListDTO, conn: &PgConnection) -> bool {
        diesel::update(lists.filter(lists::list_id.eq(id)))
            .set((
                lists::name.eq(new_list.name),
                lists::description.eq(new_list.description)
            ))
            .execute(conn)
            .is_ok()
    }
pub fn update_list ( id : i32 , new_list : ListDTO , conn : & PgConnection ) -> bool { diesel :: update ( lists . filter ( lists :: list_id . eq ( id ) ) ) . set ( ( lists :: name . eq ( new_list . name ) , lists :: description . eq ( new_list . description ) ) ) . execute ( conn ) . is_ok ( ) }
Attempts to update the list with the given `id` to the new values in `new_list`.
Attempts to update the list with the given ` id ` to the new values in ` new_list ` .
id
i32
new_list
ListDTO
conn
&PgConnection
id
i32
new_list
ListDTO
conn
&PgConnection