pub fn generate_response(
import_prefix: &str,
input: &str,
output: &str,
) -> Result<()>
Available on crate feature
response-build
only.Expand description
Generate response file from yml.
This function should be used in build.rs
.
ⓘ
[build-dependencies]
actix-cloud = { version = "xx", features = ["response-build"] }
use actix_cloud::response_build::generate_response;
generate_response("", "response", "response.rs").unwrap();