Skip to content

Allow for more idiomatic Rust code #19

@thomaseizinger

Description

@thomaseizinger

Currently, the functions on the trait need to be named exactly the way the RPC function is called. That means we cannot use idiomatic Rust naming conventions like snake_case.

We should support this in a similar fashion as serde with its rename_all attribute.

Potentially, we also want to allow prefixes like they are present in Web3's JSON-RPC API: eth_, web3_, net_` etc without having to repeat them on every function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions