Skip to main content

rename_for

Function rename_for 

Source
pub fn rename_for(wire: &str, ident: &RustIdent) -> Option<String>
Expand description

Compute the serde rename value for a member, given its wire name and the chosen Rust identifier. Returns None when no rename attribute is needed.