You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: update_many.rs
    path of file: ./repos/prisma-client-rust/crates/lib/src/queries
    
    the code of the file until where you have to start completion: use prisma_models::PrismaValue;
use query_core::Operation;

use crate::{
    merge_fields, BatchResult, ModelOperation, ModelQuery, ModelTypes, ModelWriteOperation,
    PrismaClientInternals, Query, QueryConvert, SetQuery, WhereInput, WhereQuery,
};

pub struct UpdateMany<'a, Actions: ModelTypes> {
    client: &'a PrismaClientInternals,
    pub where_params: Vec<Actions::Where>,
    pub set_params: Vec<Actions::Set>,
}

impl<'a, Actions: ModelTypes> UpdateMany<'a, Actions> {
    pub fn new(
        client: &'a PrismaClientInternals,
        where_params: Vec<Actions::Where>,
        set_params: Vec<Actions::Set>,
    ) -> Self {
        Self {
            client,
            where_params,
            set_params,
        }
    }

    pub async fn exec(self) -> super::Result<i64> {
        super::exec(self).await
    }
}

impl<'a, Actions: ModelTypes> QueryConvert for UpdateMany<'a, Actions> {
    type RawType = BatchResult;
    type ReturnValue = i64;

    fn convert(raw: Self::RawType) -> super::Result<Self::ReturnValue> {
        Ok(raw.count)
    }
}


    
    fn graphql(self) -> (Operation, &'a PrismaClientInternals) {
        (
            Operation::Write(Self::base_selection(
                [
                    Some((
                        "data".to_string(),
                        PrismaValue::Object(merge_fields(
                            self.set_params
                                .into_iter()
                                .map(Into::into)
                                .map(Into::into)
                                .collect(),
                        ))
                        .into(),
                    )),
                    (!self.where_params.is_empty()).then(|| {
                        (
                            "where".to_string(),
                            PrismaValue::Object(merge_fields(
                                self.where_params
                                    .into_iter()
                                    .map(WhereInput::serialize)
                                    .map(|s| (s.field, s.value.into()))
                                    .collect(),
                            ))
                            .into(),
                        )
                    }),
                ]
                .into_iter()
                .flatten(),
                [BatchResult::selection()],
            )),
            self.client,
        )
    }