How can I get the Token from the server

Working with Postman, using the configeration as shown at the screen shoot, I’m able to get the token from the server.
How can I do this using Rust code?.

Postman is just an http client; you need to send the same request using an http client library in Rust such as Reqwest.