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: lib.rs
    path of file: ./repos/spacedrive/crates/cloud-api/src
    
    the code of the file until where you have to start completion: pub mod auth;

use std::{future::Future, sync::Arc};

use auth::OAuthToken;
use sd_p2p2::RemoteIdentity;
use serde::{Deserialize, Serialize};
use serde_json::json;
use specta::Type;
use uuid::Uuid;

pub struct Reques
    
		pub async fn exec(config: RequestConfig, name: String) -> Result<Response, Error> {
			let Some(auth_token) = config.auth_token else {
				return Err(Error("Authentication required".to_string()));
			};

			config
				.client
				.post(&format!("{}/api/v1/locations", config.api_url))
				.json(&json!({
					"name": name,
				}))
				.with_auth(auth_token)
				.send()
				.await
				.map_err(|e| Error(e.to_string()))?
				.json()
				.await
				.map_err(|e| Error(e.to_string()))
		}