[INFO] fetching crate termii-rust 0.1.1...
[INFO] testing termii-rust-0.1.1 against beta-2022-07-10 for beta-1.63-1
[INFO] extracting crate termii-rust 0.1.1 into /workspace/builds/worker-0/source
[INFO] validating manifest of crates.io crate termii-rust 0.1.1 on toolchain beta-2022-07-10
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate termii-rust 0.1.1
[INFO] finished tweaking crates.io crate termii-rust 0.1.1
[INFO] tweaked toml for crates.io crate termii-rust 0.1.1 written to /workspace/builds/worker-0/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 5102aa35222d40c13773a019f43415dc32b25a728b579a71b3e27a80387510c3
[INFO] running `Command { std: "docker" "start" "-a" "5102aa35222d40c13773a019f43415dc32b25a728b579a71b3e27a80387510c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5102aa35222d40c13773a019f43415dc32b25a728b579a71b3e27a80387510c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5102aa35222d40c13773a019f43415dc32b25a728b579a71b3e27a80387510c3", kill_on_drop: false }`
[INFO] [stdout] 5102aa35222d40c13773a019f43415dc32b25a728b579a71b3e27a80387510c3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 158e1b0ae68a4f0584be12125bb7a583bbeebe1a3545ea7b8e072068274bc633
[INFO] running `Command { std: "docker" "start" "-a" "158e1b0ae68a4f0584be12125bb7a583bbeebe1a3545ea7b8e072068274bc633", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.98
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]    Compiling openssl v0.10.41
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling native-tls v0.2.10
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling httparse v1.7.1
[INFO] [stderr]    Compiling encoding_rs v0.8.31
[INFO] [stderr]    Compiling regex-syntax v0.6.27
[INFO] [stderr]    Compiling ipnet v2.5.0
[INFO] [stderr]    Compiling http v0.2.8
[INFO] [stderr]    Compiling tracing v0.1.35
[INFO] [stderr]    Compiling socket2 v0.4.4
[INFO] [stderr]    Compiling mio v0.8.4
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling regex v1.6.0
[INFO] [stderr]    Compiling env_logger v0.9.0
[INFO] [stderr]    Compiling tokio-macros v1.8.0
[INFO] [stderr]    Compiling openssl-macros v0.1.0
[INFO] [stderr]    Compiling serde_derive v1.0.138
[INFO] [stderr]    Compiling thiserror-impl v1.0.31
[INFO] [stderr]    Compiling async-trait v0.1.56
[INFO] [stderr]    Compiling tokio v1.19.2
[INFO] [stderr]    Compiling thiserror v1.0.31
[INFO] [stderr]    Compiling serde v1.0.138
[INFO] [stderr]    Compiling tokio-util v0.7.3
[INFO] [stderr]    Compiling tokio-native-tls v0.3.0
[INFO] [stderr]    Compiling h2 v0.3.13
[INFO] [stderr]    Compiling serde_json v1.0.82
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling hyper v0.14.20
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.11
[INFO] [stderr]    Compiling termii-rust v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 25.44s
[INFO] running `Command { std: "docker" "inspect" "158e1b0ae68a4f0584be12125bb7a583bbeebe1a3545ea7b8e072068274bc633", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "158e1b0ae68a4f0584be12125bb7a583bbeebe1a3545ea7b8e072068274bc633", kill_on_drop: false }`
[INFO] [stdout] 158e1b0ae68a4f0584be12125bb7a583bbeebe1a3545ea7b8e072068274bc633
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8f55fac798eaab45c3d3d8fb1c29a2f1eef49bcc9436a84492be4f72a8c17a58
[INFO] running `Command { std: "docker" "start" "-a" "8f55fac798eaab45c3d3d8fb1c29a2f1eef49bcc9436a84492be4f72a8c17a58", kill_on_drop: false }`
[INFO] [stderr]    Compiling termii-rust v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 4.09s
[INFO] running `Command { std: "docker" "inspect" "8f55fac798eaab45c3d3d8fb1c29a2f1eef49bcc9436a84492be4f72a8c17a58", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8f55fac798eaab45c3d3d8fb1c29a2f1eef49bcc9436a84492be4f72a8c17a58", kill_on_drop: false }`
[INFO] [stdout] 8f55fac798eaab45c3d3d8fb1c29a2f1eef49bcc9436a84492be4f72a8c17a58
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-10" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 876f6cb2b690b3aae7e63627e90805ba07b0ecbf114b2575b10d685f04ee8e96
[INFO] running `Command { std: "docker" "start" "-a" "876f6cb2b690b3aae7e63627e90805ba07b0ecbf114b2575b10d685f04ee8e96", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.08s
[INFO] [stderr]      Running unittests src/lib/mod.rs (/opt/rustwide/target/debug/deps/termii_rust-05b63c7da70f9969)
[INFO] [stderr]    Doc-tests termii_rust
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 40 tests
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::delete (line 172) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 6) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 59) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/balance.rs - async_impl::rest::insights::balance::Balance::get (line 26) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 43) ... FAILED
[INFO] [stdout] test src/lib/async_impl/mod.rs - async_impl (line 8) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::get (line 60) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/search.rs - async_impl::rest::insights::search::Search::get (line 26) ... FAILED
[INFO] [stdout] test src/lib/async_impl/mod.rs - async_impl (line 33) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status::get (line 25) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 36) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::create (line 73) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History::get (line 58) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 24) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/number.rs - async_impl::rest::switch::number::Number::send (line 28) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging::send (line 30) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 48) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::update (line 118) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging::send_bulk (line 70) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 64) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 17) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 22) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 75) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History::get (line 44) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::get (line 44) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::get (line 55) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 82) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::get (line 49) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::request (line 68) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 6) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 30) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/request.rs - async_impl::rest::token::request::RequestToken::send (line 29) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken::send (line 29) ... FAILED
[INFO] [stdout] test src/lib/mod.rs - (line 16) ... FAILED
[INFO] [stdout] test src/lib/mod.rs - (line 72) ... FAILED
[INFO] [stdout] test src/lib/mod.rs - (line 41) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 61) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken::send (line 29) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates::send (line 28) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 6) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::delete (line 172) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/campaign.rs:182:52
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_172_0() {
[INFO] [stdout]    |                                           -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 |       .delete("f9c28de9-ab5a-4513-9c9f-338be8e1c390")
[INFO] [stdout]    |  ____________________________________________________^
[INFO] [stdout] 14 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 6) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/mod.rs:10:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/mod.rs:14:44
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_6_0() {
[INFO] [stdout]    |                                         --------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let balance = client.insights.balance.get().await.unwrap();
[INFO] [stdout]    |                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 59) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/mod.rs:63:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/mod.rs:67:74
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_59_0() {
[INFO] [stdout]    |                                         ---------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let status:StatusItem = client.insights.status.get("234XXXXXXXXXX", "NG").await.unwrap();
[INFO] [stdout]    |                                                                          ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/balance.rs - async_impl::rest::insights::balance::Balance::get (line 26) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/balance.rs:30:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/balance.rs:34:44
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_balance_rs_26_0() {
[INFO] [stdout]    |                                         -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let balance = client.insights.balance.get().await.unwrap();
[INFO] [stdout]    |                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 43) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/mod.rs:47:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/mod.rs:51:68
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_43_0() {
[INFO] [stdout]    |                                         ---------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let search:SearchItem = client.insights.search.get("234XXXXXXXXXX").await.unwrap();
[INFO] [stdout]    |                                                                    ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/mod.rs - async_impl (line 8) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/mod.rs:12:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/mod.rs:24:53
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_mod_rs_8_0() {
[INFO] [stdout]    |                                         ------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 | let message = client.switch.messaging.send(_message).await.unwrap();
[INFO] [stdout]    |                                                     ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::get (line 60) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `PhoneBookItem` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/campaign.rs:61:21
[INFO] [stdout]   |
[INFO] [stdout] 3 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.all().await.unwrap();
[INFO] [stdout]   |                     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use termii_rust::common::switch::PhoneBookItem;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/campaign.rs:61:38
[INFO] [stdout]   |
[INFO] [stdout] 3 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.all().await.unwrap();
[INFO] [stdout]   |                                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/campaign.rs:61:66
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_60_0() {
[INFO] [stdout]   |                                         ------------------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.all().await.unwrap();
[INFO] [stdout]   |                                                                  ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/search.rs - async_impl::rest::insights::search::Search::get (line 26) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/search.rs:30:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/search.rs:34:68
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_search_rs_26_0() {
[INFO] [stdout]    |                                         ------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let search:SearchItem = client.insights.search.get("234XXXXXXXXXX").await.unwrap();
[INFO] [stdout]    |                                                                    ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/mod.rs - async_impl (line 33) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `otp_payload` in this scope
[INFO] [stdout]   --> src/lib/async_impl/mod.rs:56:48
[INFO] [stdout]    |
[INFO] [stdout] 26 | let response = client.token.request_token.send(otp_payload).await.unwrap();
[INFO] [stdout]    |                                                ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/mod.rs:56:60
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_mod_rs_33_0() {
[INFO] [stdout]    |                                         -------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 26 | let response = client.token.request_token.send(otp_payload).await.unwrap();
[INFO] [stdout]    |                                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status::get (line 25) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/status.rs:29:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/status.rs:33:74
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_status_rs_25_0() {
[INFO] [stdout]    |                                         ------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let status:StatusItem = client.insights.status.get("234XXXXXXXXXX", "NG").await.unwrap();
[INFO] [stdout]    |                                                                          ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 36) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/mod.rs:37:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | let history = client.insights.history.all().await.unwrap();
[INFO] [stdout]   |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/mod.rs:37:44
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_36_0() {
[INFO] [stdout]   |                                         ---------------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | let history = client.insights.history.all().await.unwrap();
[INFO] [stdout]   |                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::create (line 73) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/campaign.rs:91:38
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_73_0() {
[INFO] [stdout]    |                                           ------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 21 |       .create(phonebook_create_request)
[INFO] [stdout]    |  ______________________________________^
[INFO] [stdout] 22 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `api_key` in initializer of `PhoneBookCreateUpdateRequest`
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/campaign.rs:83:32
[INFO] [stdout]    |
[INFO] [stdout] 13 | let phonebook_create_request = PhoneBookCreateUpdateRequest {
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `api_key`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History::get (line 58) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/history.rs:59:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | let history = client.insights.history.all().await.unwrap();
[INFO] [stdout]   |               ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/history.rs:59:44
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_history_rs_58_0() {
[INFO] [stdout]   |                                         -------------------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | let history = client.insights.history.all().await.unwrap();
[INFO] [stdout]   |                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 24) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/mod.rs:40:69
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_24_0() {
[INFO] [stdout]    |                                         -------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 | let message_response = client.switch.messaging.send(message_payload).await.unwrap();
[INFO] [stdout]    |                                                                     ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/number.rs - async_impl::rest::switch::number::Number::send (line 28) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/number.rs:36:66
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_number_rs_28_0() {
[INFO] [stdout]    |                                         ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let message_response = client.switch.number.send(message_payload).await.unwrap();
[INFO] [stdout]    |                                                                  ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging::send (line 30) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/messaging.rs:46:69
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_messaging_rs_30_0() {
[INFO] [stdout]    |                                         -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 | let message_response = client.switch.messaging.send(message_payload).await.unwrap();
[INFO] [stdout]    |                                                                     ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 48) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/mod.rs:56:66
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_48_0() {
[INFO] [stdout]    |                                         -------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let message_response = client.switch.number.send(message_payload).await.unwrap();
[INFO] [stdout]    |                                                                  ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::update (line 118) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/campaign.rs:139:6
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_118_0() {
[INFO] [stdout]    |                                           -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 24 |       )
[INFO] [stdout]    |  ______^
[INFO] [stdout] 25 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `api_key` in initializer of `PhoneBookCreateUpdateRequest`
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/campaign.rs:128:32
[INFO] [stdout]    |
[INFO] [stdout] 13 | let phonebook_update_request = PhoneBookCreateUpdateRequest {
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `api_key`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging::send_bulk (line 70) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/messaging.rs:91:37
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_messaging_rs_70_0() {
[INFO] [stdout]    |                                           -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 24 |       .send_bulk(message_bulk_payload)
[INFO] [stdout]    |  _____________________________________^
[INFO] [stdout] 25 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 64) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:69:55
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_64_0() {
[INFO] [stdout]   |                                         -------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let sender_id = client.switch.sender_id.get(Some("1")).await.unwrap();
[INFO] [stdout]   |                                                       ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 17) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `PhoneBookItem` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:18:21
[INFO] [stdout]   |
[INFO] [stdout] 3 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.all().await.unwrap();
[INFO] [stdout]   |                     ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 | use termii_rust::common::switch::PhoneBookItem;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:18:38
[INFO] [stdout]   |
[INFO] [stdout] 3 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.all().await.unwrap();
[INFO] [stdout]   |                                      ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:18:66
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_17_0() {
[INFO] [stdout]   |                                         -------------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.all().await.unwrap();
[INFO] [stdout]   |                                                                  ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 22) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/mod.rs:26:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/mod.rs:30:56
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_22_0() {
[INFO] [stdout]    |                                         ---------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get().await.unwrap();
[INFO] [stdout]    |                                                        ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/mod.rs:30:51
[INFO] [stdout]    |
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get().await.unwrap();
[INFO] [stdout]    |                                                   ^^^-- an argument of type `Option<&str>` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib/async_impl/rest/insights/history.rs:61:18
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub async fn get(&self, page: Option<&str>) -> Result<Vec<HistoryItem>, errors::HttpError> {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get(/* Option<&str> */).await.unwrap();
[INFO] [stdout]    |                                                   ~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/mod.rs:30:27
[INFO] [stdout]    |
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get().await.unwrap();
[INFO] [stdout]    |             -----------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `HistoryItem`, found struct `Vec`
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected due to this
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HistoryItem`
[INFO] [stdout]               found struct `Vec<HistoryItem>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 75) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:76:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().await.unwrap();
[INFO] [stdout]   |                  ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:76:47
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_75_0() {
[INFO] [stdout]   |                                         -------------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().await.unwrap();
[INFO] [stdout]   |                                               ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History::get (line 44) stdout ----
[INFO] [stdout] error: expected `;`, found keyword `let`
[INFO] [stdout]  --> src/lib/async_impl/rest/insights/history.rs:48:2
[INFO] [stdout]   |
[INFO] [stdout] 7 | }
[INFO] [stdout]   |  ^ help: add `;` here
[INFO] [stdout] 8 |
[INFO] [stdout] 9 | let client = termii::Termii::new("Your API key");
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/history.rs:52:56
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_history_rs_44_0() {
[INFO] [stdout]    |                                         -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get().await.unwrap();
[INFO] [stdout]    |                                                        ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/history.rs:52:51
[INFO] [stdout]    |
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get().await.unwrap();
[INFO] [stdout]    |                                                   ^^^-- an argument of type `Option<&str>` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib/async_impl/rest/insights/history.rs:61:18
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub async fn get(&self, page: Option<&str>) -> Result<Vec<HistoryItem>, errors::HttpError> {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get(/* Option<&str> */).await.unwrap();
[INFO] [stdout]    |                                                   ~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib/async_impl/rest/insights/history.rs:52:27
[INFO] [stdout]    |
[INFO] [stdout] 11 | let history:HistoryItem = client.insights.history.get().await.unwrap();
[INFO] [stdout]    |             -----------   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `HistoryItem`, found struct `Vec`
[INFO] [stdout]    |             |
[INFO] [stdout]    |             expected due to this
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `HistoryItem`
[INFO] [stdout]               found struct `Vec<HistoryItem>`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::get (line 44) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/sender_id.rs:49:55
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_sender_id_rs_44_0() {
[INFO] [stdout]   |                                         -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let sender_id = client.switch.sender_id.get(Some("1")).await.unwrap();
[INFO] [stdout]   |                                                       ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::get (line 55) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `client` in this scope
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/sender_id.rs:56:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().await.unwrap();
[INFO] [stdout]   |                  ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/sender_id.rs:56:47
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_sender_id_rs_55_0() {
[INFO] [stdout]   |                                         -------------------------------------------------------------- this is not `async`
[INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().await.unwrap();
[INFO] [stdout]   |                                               ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 82) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/mod.rs:103:29
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_82_0() {
[INFO] [stdout]    |                                           -------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 24 |       .send(templates_payload)
[INFO] [stdout]    |  _____________________________^
[INFO] [stdout] 25 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/mod.rs:91:24
[INFO] [stdout]    |
[INFO] [stdout] 12 |     TemplatesData::new("Termii", "325821".to_string(), "10 minutes".to_string());
[INFO] [stdout]    |     ------------------ ^^^^^^^^- help: try using a conversion method: `.to_string()`
[INFO] [stdout]    |     |                  |
[INFO] [stdout]    |     |                  expected struct `String`, found `&str`
[INFO] [stdout]    |     arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib/common/switch/templates.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub fn new(product_name: String, otp: String, expiry_time: String) -> TemplatesData {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::get (line 49) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/campaign.rs:54:73
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_49_0() {
[INFO] [stdout]   |                                         ------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.get(Some(1)).await.unwrap();
[INFO] [stdout]   |                                                                         ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/campaign.rs:54:70
[INFO] [stdout]   |
[INFO] [stdout] 8 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.get(Some(1)).await.unwrap();
[INFO] [stdout]   |                                                                 ---- ^ expected `&str`, found integer
[INFO] [stdout]   |                                                                 |
[INFO] [stdout]   |                                                                 arguments to this enum variant are incorrect
[INFO] [stdout]   |
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::request (line 68) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/sender_id.rs:82:32
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_sender_id_rs_68_0() {
[INFO] [stdout]    |                                           -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 17 |       .request(sender_id_payload)
[INFO] [stdout]    |  ________________________________^
[INFO] [stdout] 18 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 6) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:11:73
[INFO] [stdout]   |
[INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_6_0() {
[INFO] [stdout]   |                                         ------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.get(Some(1)).await.unwrap();
[INFO] [stdout]   |                                                                         ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:11:70
[INFO] [stdout]   |
[INFO] [stdout] 8 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.get(Some(1)).await.unwrap();
[INFO] [stdout]   |                                                                 ---- ^ expected `&str`, found integer
[INFO] [stdout]   |                                                                 |
[INFO] [stdout]   |                                                                 arguments to this enum variant are incorrect
[INFO] [stdout]   |
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 30) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/token/mod.rs:53:54
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_mod_rs_30_0() {
[INFO] [stdout]    |                                         ------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 26 | let response = client.token.request.send(otp_request).await.unwrap();
[INFO] [stdout]    |                                                      ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `request` on type `Token<'_>`
[INFO] [stdout]   --> src/lib/async_impl/rest/token/mod.rs:53:29
[INFO] [stdout]    |
[INFO] [stdout] 26 | let response = client.token.request.send(otp_request).await.unwrap();
[INFO] [stdout]    |                             ^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `request_token`, `verify_token`, `in_app_token`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0609, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0609`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/token/request.rs - async_impl::rest::token::request::RequestToken::send (line 29) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/token/request.rs:52:54
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_request_rs_29_0() {
[INFO] [stdout]    |                                         ----------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 26 | let response = client.token.request.send(otp_request).await.unwrap();
[INFO] [stdout]    |                                                      ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `request` on type `Token<'_>`
[INFO] [stdout]   --> src/lib/async_impl/rest/token/request.rs:52:29
[INFO] [stdout]    |
[INFO] [stdout] 26 | let response = client.token.request.send(otp_request).await.unwrap();
[INFO] [stdout]    |                             ^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `request_token`, `verify_token`, `in_app_token`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0609, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0609`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken::send (line 29) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/token/verify.rs:39:60
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_verify_rs_29_0() {
[INFO] [stdout]    |                                         ---------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 | let response = client.token.verify.send(verify_otp_request).await.unwrap();
[INFO] [stdout]    |                                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `verify` on type `Token<'_>`
[INFO] [stdout]   --> src/lib/async_impl/rest/token/verify.rs:39:29
[INFO] [stdout]    |
[INFO] [stdout] 13 | let response = client.token.verify.send(verify_otp_request).await.unwrap();
[INFO] [stdout]    |                             ^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `request_token`, `verify_token`, `in_app_token`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0609, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0609`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/mod.rs - (line 16) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/mod.rs:32:53
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_mod_rs_16_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 | let message = client.switch.messaging.send(_message).await;
[INFO] [stdout]    |                                                     ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/mod.rs - (line 72) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/mod.rs:80:48
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_mod_rs_72_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 11 | let all_history = client.insights.history.all().await;
[INFO] [stdout]    |                                                ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/mod.rs - (line 41) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `otp_payload` in this scope
[INFO] [stdout]   --> src/lib/mod.rs:64:48
[INFO] [stdout]    |
[INFO] [stdout] 26 | let response = client.token.request_token.send(otp_payload).await;
[INFO] [stdout]    |                                                ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/mod.rs:64:60
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_mod_rs_41_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 26 | let response = client.token.request_token.send(otp_payload).await;
[INFO] [stdout]    |                                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 61) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/token/mod.rs:71:60
[INFO] [stdout]    |
[INFO] [stdout] 3  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_mod_rs_61_0() {
[INFO] [stdout]    |                                         ------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 | let response = client.token.verify.send(verify_otp_request).await.unwrap();
[INFO] [stdout]    |                                                            ^^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `verify` on type `Token<'_>`
[INFO] [stdout]   --> src/lib/async_impl/rest/token/mod.rs:71:29
[INFO] [stdout]    |
[INFO] [stdout] 13 | let response = client.token.verify.send(verify_otp_request).await.unwrap();
[INFO] [stdout]    |                             ^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `request_token`, `verify_token`, `in_app_token`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0609, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0609`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken::send (line 29) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/token/in_app_token.rs:43:32
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_in_app_token_rs_29_0() {
[INFO] [stdout]    |                                           ---------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 17 |       .send(in_app_token_request)
[INFO] [stdout]    |  ________________________________^
[INFO] [stdout] 18 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib/async_impl/rest/token/in_app_token.rs:38:28
[INFO] [stdout]    |
[INFO] [stdout] 12 |     InAppTokenRequest::new("+234XXXXXXXXXX", InAppTokenMessageType::NUMERIC, 3, 300, 6);
[INFO] [stdout]    |     ---------------------- ^^^^^^^^^^^^^^^^- help: try using a conversion method: `.to_string()`
[INFO] [stdout]    |     |                      |
[INFO] [stdout]    |     |                      expected struct `String`, found `&str`
[INFO] [stdout]    |     arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib/common/token/in_app_token.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 20 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates::send (line 28) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/templates.rs:49:29
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_templates_rs_28_0() {
[INFO] [stdout]    |                                           -------------------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 24 |       .send(templates_payload)
[INFO] [stdout]    |  _____________________________^
[INFO] [stdout] 25 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib/async_impl/rest/switch/templates.rs:37:24
[INFO] [stdout]    |
[INFO] [stdout] 12 |     TemplatesData::new("Termii", "325821".to_string(), "10 minutes".to_string());
[INFO] [stdout]    |     ------------------ ^^^^^^^^- help: try using a conversion method: `.to_string()`
[INFO] [stdout]    |     |                  |
[INFO] [stdout]    |     |                  expected struct `String`, found `&str`
[INFO] [stdout]    |     arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib/common/switch/templates.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub fn new(product_name: String, otp: String, expiry_time: String) -> TemplatesData {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 6) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib/async_impl/rest/token/mod.rs:20:32
[INFO] [stdout]    |
[INFO] [stdout] 3  |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_mod_rs_6_0() {
[INFO] [stdout]    |                                           ------------------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 17 |       .send(in_app_token_request)
[INFO] [stdout]    |  ________________________________^
[INFO] [stdout] 18 | |     .await
[INFO] [stdout]    | |__________^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/lib/async_impl/rest/token/mod.rs:15:28
[INFO] [stdout]    |
[INFO] [stdout] 12 |     InAppTokenRequest::new("+234XXXXXXXXXX", InAppTokenMessageType::NUMERIC, 3, 300, 6);
[INFO] [stdout]    |     ---------------------- ^^^^^^^^^^^^^^^^- help: try using a conversion method: `.to_string()`
[INFO] [stdout]    |     |                      |
[INFO] [stdout]    |     |                      expected struct `String`, found `&str`
[INFO] [stdout]    |     arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/lib/common/token/in_app_token.rs:20:12
[INFO] [stdout]    |
[INFO] [stdout] 20 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib/async_impl/mod.rs - async_impl (line 33)
[INFO] [stdout]     src/lib/async_impl/mod.rs - async_impl (line 8)
[INFO] [stdout]     src/lib/async_impl/rest/insights/balance.rs - async_impl::rest::insights::balance::Balance::get (line 26)
[INFO] [stdout]     src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History::get (line 44)
[INFO] [stdout]     src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History::get (line 58)
[INFO] [stdout]     src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 22)
[INFO] [stdout]     src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 36)
[INFO] [stdout]     src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 43)
[INFO] [stdout]     src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 59)
[INFO] [stdout]     src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 6)
[INFO] [stdout]     src/lib/async_impl/rest/insights/search.rs - async_impl::rest::insights::search::Search::get (line 26)
[INFO] [stdout]     src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status::get (line 25)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::create (line 73)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::delete (line 172)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::get (line 49)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::get (line 60)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign::update (line 118)
[INFO] [stdout]     src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging::send (line 30)
[INFO] [stdout]     src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging::send_bulk (line 70)
[INFO] [stdout]     src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 17)
[INFO] [stdout]     src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 24)
[INFO] [stdout]     src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 48)
[INFO] [stdout]     src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 6)
[INFO] [stdout]     src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 64)
[INFO] [stdout]     src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 75)
[INFO] [stdout]     src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 82)
[INFO] [stdout]     src/lib/async_impl/rest/switch/number.rs - async_impl::rest::switch::number::Number::send (line 28)
[INFO] [stdout]     src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::get (line 44)
[INFO] [stdout]     src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::get (line 55)
[INFO] [stdout]     src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID::request (line 68)
[INFO] [stdout]     src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates::send (line 28)
[INFO] [stdout]     src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken::send (line 29)
[INFO] [stdout]     src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 30)
[INFO] [stdout]     src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 6)
[INFO] [stdout]     src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 61)
[INFO] [stdout]     src/lib/async_impl/rest/token/request.rs - async_impl::rest::token::request::RequestToken::send (line 29)
[INFO] [stdout]     src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken::send (line 29)
[INFO] [stdout]     src/lib/mod.rs - (line 16)
[INFO] [stdout]     src/lib/mod.rs - (line 41)
[INFO] [stdout]     src/lib/mod.rs - (line 72)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 40 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass '--doc'
[INFO] running `Command { std: "docker" "inspect" "876f6cb2b690b3aae7e63627e90805ba07b0ecbf114b2575b10d685f04ee8e96", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "876f6cb2b690b3aae7e63627e90805ba07b0ecbf114b2575b10d685f04ee8e96", kill_on_drop: false }`
[INFO] [stdout] 876f6cb2b690b3aae7e63627e90805ba07b0ecbf114b2575b10d685f04ee8e96
