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: config.rs
    path of file: ./repos/CYFS/src/misc/perf-service/src
    
    the code of the file until where you have to start completion: use std::fmt::{Display, Formatter};
use std::str::FromStr;
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use cyfs_base::{BuckyError, BuckyErrorCode, BuckyResult, TStringVisitor};
use cyfs_lib::SharedCyfsStack;
use crate::storage::StorageConfig;
use cyfs_perf_base::PER
    
pub(crate) async fn get_stack(config: StackType) -> BuckyResult<SharedCyfsStack> {
    let dec_id = Some(PERF_DEC_ID.clone());
    let stack = match config {
        StackType::OOD => {
            SharedCyfsStack::open_default(dec_id).await
        },
        StackType::Runtime => {
            SharedCyfsStack::open_runtime(dec_id).await
        },
        StackType::Other(http_port, ws_port) => {
            SharedCyfsStack::open_with_port(dec_id, http_port, ws_port).await
        }
    }?;

    stack.online().await?;

    Ok(stack)
}