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: deployer.rs
    path of file: ./repos/nox/crates/system-services/src
    
    the code of the file until where you have to start completion: use crate::distro::*;
use crate::CallService;
use crate::{DeploymentStatus, PackageDistro, ServiceDistro, ServiceStatus,
    
    fn add_modules(&self, service_distro: ServiceDistro) -> eyre::Result<String> {
        let mut hashes = Vec::new();
        for config in service_distro.config.module {
            let name = config.name.clone();
            // TODO: introduce nice errors for this
            let module = service_distro
                .modules
                .get(name.as_str())
                .ok_or(eyre!(format!(
                    "there's no module `{name}` in the given modules map for system service {}",
                    service_distro.name
                )))?;
            let hash = self
                .modules_repo
                .add_system_module(module.to_vec(), config)
                .map_err(|e| {
                    eyre!(
                        "error while adding module {name} of service `{}`: {:?}",
                        service_distro.name,
                        e
                    )
                })?;
            hashes.push(hash)
        }
        let blueprint_id = self
            .modules_repo
            .add_blueprint(AddBlueprint::new(service_distro.name, hashes))?;
        Ok(blueprint_id)
    }