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: scheme.rs
    path of file: ./repos/wezterm/sync-color-schemes/src
    
    the code of the file until where you have to start completion: use super::*;

#[derive(Debug, PartialEq, Clone)]
pub struct Scheme {
    pub name: String,
    pub file_name: Option<String>,
    pub data: ColorSchemeFile,
}

impl Scheme {
    pub fn to_toml_value(&self) -> anyhow::Result<toml::Value> {
        self.data.to_toml_value()
    }

    pub fn to_toml(&self) -> anyhow::Result<String> {
        let value = self.
    
    pub fn to_json(&self) -> anyhow::Result<String> {
        let mut value = self.to_toml_value()?;
        let (prefix, _) = make_prefix(&self.name);
        match &mut value {
            toml::Value::Table(map) => {
                let meta = map.get_mut("metadata").unwrap();
                match meta {
                    toml::Value::Table(meta) => {
                        meta.insert(
                            "prefix".to_string(),
                            toml::Value::String(prefix.to_string()),
                        );
                    }
                    _ => unreachable!(),
                }
            }
            _ => unreachable!(),
        }

        Ok(serde_json::to_string_pretty(&value)?)
    }