1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub(crate) fn generate(
	mut writer: impl std::io::Write,
	type_name: &str,
	error_status_rust_type: &str,
	error_other_rust_type: &str,
	map_namespace: &impl crate::MapNamespace,
) -> Result<(), crate::Error> {
	let local = crate::map_namespace_local_to_string(map_namespace)?;

	writeln!(
		writer,
		include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/templates/watch_event.rs")),
		local = local,
		type_name = type_name,
		error_status_rust_type = error_status_rust_type,
		error_other_rust_type = error_other_rust_type,
	)?;

	Ok(())
}