k8s_openapi_codegen_common/templates/
watch_event.rs
1pub(crate) fn generate(
2 mut writer: impl std::io::Write,
3 type_name: &str,
4 error_status_rust_type: &str,
5 error_other_rust_type: &str,
6 map_namespace: &impl crate::MapNamespace,
7) -> Result<(), crate::Error> {
8 let local = crate::map_namespace_local_to_string(map_namespace)?;
9
10 writeln!(
11 writer,
12 include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/watch_event.rs")),
13 local = local,
14 type_name = type_name,
15 error_status_rust_type = error_status_rust_type,
16 error_other_rust_type = error_other_rust_type,
17 )?;
18
19 Ok(())
20}