pub
Also written: public, private
Everything in a module is private by default, usable only inside it. Marking an item `pub` makes it public so outside code can use it; struct fields need `pub` too.
Also written: public, private
Everything in a module is private by default, usable only inside it. Marking an item `pub` makes it public so outside code can use it; struct fields need `pub` too.