Skip to main content

methods

Attribute Macro methods 

Source
#[methods]
Expand description

Attribute macro that publishes every method of an inherent impl block, generating the structs::RepeMethods table from the signatures themselves.

Pair it with #[repe(methods)] on the #[derive(RepeStruct)] struct; each half asserts the other, so neither can be forgotten silently. Publish every method of an inherent impl block as an RPC endpoint.

See repe::structs::RepeMethods for the shape; the struct must carry the #[repe(methods)] marker beside its #[derive(RepeStruct)] so the derived router dispatches here.