From 13a2a7d5d87ec1a1d489208fffdebd1e05610437 Mon Sep 17 00:00:00 2001 From: tuck1s Date: Sun, 5 Jul 2020 13:07:09 +0100 Subject: [PATCH] Rust README --- snippets/recipient-validation/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/recipient-validation/README.md b/snippets/recipient-validation/README.md index b76619f..db1ade4 100644 --- a/snippets/recipient-validation/README.md +++ b/snippets/recipient-validation/README.md @@ -202,7 +202,7 @@ If you build and execute the code included in the repo, the result should look l ## [Rust](rust_recipient_validation/src/main.rs) -This uses the reqwest library with Tokio async (similar to [this](https://rust-lang-nursery.github.io/rust-cookbook/web/clients/requests.html)), as it does not seem possible to set request headers on the blocking `get` call. +This uses the `reqwest` library with `tokio` async (similar to [this](https://rust-lang-nursery.github.io/rust-cookbook/web/clients/requests.html)), as it does not seem possible to set request headers on the blocking `get` call. The example includes a cargo package manager [configuration file](rust_recipient_validation/Cargo.toml), so you can build and run with:` @@ -212,7 +212,7 @@ cargo run Finished dev [unoptimized + debuginfo] target(s) in 0.10s Running `target/debug/rust_recipient_validation` - + Status: 200 OK Body: {"results":{"valid":false,"is_role":true,"is_disposable":false,"is_free":true,"reason":"Invalid Recipient","result":"undeliverable"}}