fn serialize()

in shenyu-wasm-build/src/module.rs [51:63]


    fn serialize(&self) -> Result<Vec<u8>, Error> {
        match self.module.cache() {
            Ok(artifact) => match artifact.serialize() {
                Ok(serialized_artifact) => Ok(serialized_artifact),
                Err(_) => {
                    return Err(runtime_error(format!(
                        "Failed to serialize the module artifact."
                    )))
                }
            },
            Err(_) => return Err(runtime_error(format!("Failed to get the module artifact."))),
        }
    }