[−][src]Function candid::codegen::rust::candid_id_to_rust
pub fn candid_id_to_rust(id: &str) -> String
Transforms a Candid ID into a valid Rust ID (as a string).
In case a string cannot be used as an ID in Rust, this will replace it with a
IDL Hash value of the ID, surrounged by _
(e.g. _12345_
).
If the string is a valid Rust