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: storage.rs
    path of file: ./repos/bee/bee-storage/bee-storage-sled/src
    
    the code of the file until where you have to start completion: // Copyright 2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

//! The sled storage backend.

use bee_storage::{
    access::{Fetch, Insert},
    backend::StorageBackend,
    system::{StorageHealth, StorageVersion, System, SYSTEM_HEALTH_KEY, SYSTEM_VERSION_KEY},
};
use thiserror::Error;

use crate::config::{SledConfig, SledConfigBuilder};

/// Error to be raised when a backend operation fails.
#[derive(Debu
    
    pub fn new(config: SledConfig) -> Result<Self, Error> {
        let sled_cfg = sled::Config::default()
            .path(&config.path)
            .cache_capacity(config.cache_capacity as u64)
            .mode(if config.fast_mode {
                sled::Mode::HighThroughput
            } else {
                sled::Mode::LowSpace
            })
            .use_compression(config.compression_factor.is_some())
            .compression_factor(config.compression_factor.unwrap_or(1) as i32)
            .temporary(config.temporary)
            .create_new(!config.create_new);

        let inner = sled_cfg.open()?;

        Ok(Self { inner, config })
    }