Thanks for the reply, it is working but instead of it storing just the code (e.g code = 7481050193809331123 ) it is now storing code = code: "7481050193809331123"
Well, wait seems to return the type Result<(Metadata, T, Metadata)>, so code is going to be of type T. Without seeing more of your code here, and knowing what you're trying to do, that seems correct.
If you're just asking how to parse that string into an integer, try let code_as_int = code.parse::<usize>().expect("Could not parse code");