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: patch.rs
    path of file: ./repos/surrealdb/lib/src/api/method
    
    the code of the file until where you have to start completion: use crate::api::conn::Method;
use crate::api::conn::Param;
use crate::api::opt::PatchOp;
use crat
    
		fn into_future(self) -> Self::IntoFuture {
			let Patch {
				client,
				resource,
				range,
				patches,
				..
			} = self;
			Box::pin(async move {
				let param = match range {
					Some(range) => resource?.with_range(range)?.into(),
					None => resource?.into(),
				};
				let mut vec = Vec::with_capacity(patches.len());
				for result in patches {
					vec.push(result?);
				}
				let patches = Value::Array(Array(vec));
				let mut conn = Client::new(Method::Patch);
				conn.$method(client.router.extract()?, Param::new(vec![param, patches])).await
			})
		}