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: kv.rs
    path of file: ./repos/atuin/atuin/src/command/client
    
    the code of the file until where you have to start completion: use clap::Subcommand;
use eyre::{Context, Result};

use atuin_client::{encryption, kv::KvStore, record::store::Store, settings::Settings};

#[derive(Subcommand, Debug)]
#[command(infer_subcommands = true)]
pub enum Cmd {
    // atuin kv set foo bar bar
    Set {
        #[arg(long, short)]
        key: String,

        #[arg(long, short, default_value = "defaul
    
    pub async fn run(&self, settings: &Settings, store: &(impl Store + Send + Sync)) -> Result<()> {
        let kv_store = KvStore::new();

        let encryption_key: [u8; 32] = encryption::load_key(settings)
            .context("could not load encryption key")?
            .into();

        let host_id = Settings::host_id().expect("failed to get host_id");

        match self {
            Self::Set {
                key,
                value,
                namespace,
            } => {
                kv_store
                    .set(store, &encryption_key, host_id, namespace, key, value)
                    .await
            }

            Self::Get { key, namespace } => {
                let val = kv_store.get(store, &encryption_key, namespace, key).await?;

                if let Some(kv) = val {
                    println!("{}", kv.value);
                }

                Ok(())
            }

            Self::List {
                namespace,
                all_namespaces,
            } => {
                // TODO: don't rebuild this every time lol
                let map = kv_store.build_kv(store, &encryption_key).await?;

                // slower, but sorting is probably useful
                if *all_namespaces {
                    for (ns, kv) in &map {
                        for k in kv.keys() {
                            println!("{ns}.{k}");
                        }
                    }
                } else {
                    let ns = map.get(namespace);

                    if let Some(ns) = ns {
                        for k in ns.keys() {
                            println!("{k}");
                        }
                    }
                }

                Ok(())
            }
        }
    }