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: spec.rs
    path of file: ./repos/fluvio/crates/fluvio-controlplane-metadata/src/smartmodule
    
    the code of the file until where you have to start completion: //!
//! # SmartModule Spec
//!
use std::borrow::Cow;
use std
    
    pub fn as_raw_wasm(&self) -> Result<Vec<u8>, IoError> {
        use std::io::Read;
        use flate2::bufread::GzDecoder;

        let mut wasm = Vec::with_capacity(self.payload.len());
        let mut decoder = GzDecoder::new(&**self.payload);
        decoder.read_to_end(&mut wasm)?;
        Ok(wasm)
    }