I am building a web application using RUST and trying to connect it to the database but i was getting an error[E0277]

Please edit your two code posts above, putting a line with three backticks (`) both before and after the code. That will cause github to display the code with Rust formatting.

Edit: See also this more recent post for a better explanation.