If you are using chrono >= 0.4.38 you will need to use the now feature in your Cargo.toml file:
chrono
now
Cargo.toml
[dependencies] ... chrono = { version = "0.4.38", features = ["now"] }
Then you could use:
let timestamp = chrono::offset::Utc::now();