Consider creating a struct object and then implementing methods like this:

https://doc.rust-lang.org/rust-by-example/fn/methods.html

Relay would be your struct. Then you would implement methods like create, read, update and delete.

I’m a novice so ask around. This is just what I do.

Reply to this note

Please Login to reply.

Discussion

šŸ‘Øā€šŸ’»šŸ«‚