Skip to main content

default_key_input_name

Function default_key_input_name 

Source
pub fn default_key_input_name(base: &Ident) -> Ident
Expand description

What a COMPOUND record’s key argument object is called IN RUST: <Record>KeyInput, the address a client sends when the whole address is more than an id.

No rename knob, default_input_name’s reason unchanged: a rename word moves a FACE and this is the Rust name, which no word moves.

The PUBLISHED name is not this one and is not derived here. GraphQL puts input and output types in ONE namespace, and the output half publishes <Record>Key — the shorter word, because reading an address is the commoner act — so the sending half has to differ by something, and it differs by the Input suffix composed off the SAME base the output published. emit::wire’s published_key is where that composition lives, and where the ruling that it is the one blessed derivation is written down: key(rename = "Address") gives Address and AddressInput, and an unrenamed record’s two names are exactly what they always were.