[INFO] fetching crate termii-rust 0.1.1...
[INFO] testing termii-rust-0.1.1 against beta-2023-04-20 for beta-1.70-1
[INFO] extracting crate termii-rust 0.1.1 into /workspace/builds/worker-6-tc2/source
[INFO] validating manifest of crates.io crate termii-rust 0.1.1 on toolchain beta-2023-04-20
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "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-6-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9f932907f2fa11a6d37e79df20c0575d9ed1c7c04686260884dd94fac624a2f2
[INFO] running `Command { std: "docker" "start" "-a" "9f932907f2fa11a6d37e79df20c0575d9ed1c7c04686260884dd94fac624a2f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9f932907f2fa11a6d37e79df20c0575d9ed1c7c04686260884dd94fac624a2f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f932907f2fa11a6d37e79df20c0575d9ed1c7c04686260884dd94fac624a2f2", kill_on_drop: false }`
[INFO] [stdout] 9f932907f2fa11a6d37e79df20c0575d9ed1c7c04686260884dd94fac624a2f2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cbafbc493ebfca83aaeafc76101562b49e04c45dc5dd45b6c200cc60d486c310
[INFO] running `Command { std: "docker" "start" "-a" "cbafbc493ebfca83aaeafc76101562b49e04c45dc5dd45b6c200cc60d486c310", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.56
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling libc v0.2.142
[INFO] [stderr]    Compiling log v0.4.17
[INFO] [stderr]    Compiling once_cell v1.17.1
[INFO] [stderr]    Compiling lock_api v0.4.9
[INFO] [stderr]    Compiling cc v1.0.79
[INFO] [stderr]    Compiling parking_lot_core v0.9.7
[INFO] [stderr]    Compiling bytes v1.4.0
[INFO] [stderr]    Compiling smallvec v1.10.0
[INFO] [stderr]    Compiling futures-core v0.3.28
[INFO] [stderr]    Compiling tokio v1.28.0
[INFO] [stderr]    Compiling itoa v1.0.6
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]    Compiling tracing-core v0.1.30
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling openssl v0.10.52
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling syn v2.0.15
[INFO] [stderr]    Compiling openssl-sys v0.9.87
[INFO] [stderr]    Compiling num_cpus v1.15.0
[INFO] [stderr]    Compiling socket2 v0.4.9
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling mio v0.8.6
[INFO] [stderr]    Compiling serde_derive v1.0.160
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling http v0.2.9
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling tracing v0.1.37
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling serde v1.0.160
[INFO] [stderr]    Compiling futures-sink v0.3.28
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling try-lock v0.2.4
[INFO] [stderr]    Compiling percent-encoding v2.2.0
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling form_urlencoded v1.1.0
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling ryu v1.0.13
[INFO] [stderr]    Compiling unicode-bidi v0.3.13
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling serde_json v1.0.96
[INFO] [stderr]    Compiling thiserror v1.0.40
[INFO] [stderr]    Compiling regex-syntax v0.7.1
[INFO] [stderr]    Compiling aho-corasick v1.0.1
[INFO] [stderr]    Compiling async-trait v0.1.68
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling idna v0.3.0
[INFO] [stderr]    Compiling encoding_rs v0.8.32
[INFO] [stderr]    Compiling humantime v2.1.0
[INFO] [stderr]    Compiling base64 v0.21.0
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling ipnet v2.7.2
[INFO] [stderr]    Compiling url v2.3.1
[INFO] [stderr]    Compiling termcolor v1.2.0
[INFO] [stderr]    Compiling regex v1.8.1
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.40
[INFO] [stderr]    Compiling env_logger v0.9.3
[INFO] [stderr]    Compiling tokio-util v0.7.8
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.18
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling hyper v0.14.26
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.17
[INFO] [stderr]    Compiling termii-rust v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1m 26s
[INFO] running `Command { std: "docker" "inspect" "cbafbc493ebfca83aaeafc76101562b49e04c45dc5dd45b6c200cc60d486c310", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cbafbc493ebfca83aaeafc76101562b49e04c45dc5dd45b6c200cc60d486c310", kill_on_drop: false }`
[INFO] [stdout] cbafbc493ebfca83aaeafc76101562b49e04c45dc5dd45b6c200cc60d486c310
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6985823efb3588a878b19ecce6fec50785f473fa9b2df544c8adfaf68e3e55e2
[INFO] running `Command { std: "docker" "start" "-a" "6985823efb3588a878b19ecce6fec50785f473fa9b2df544c8adfaf68e3e55e2", kill_on_drop: false }`
[INFO] [stderr]    Compiling termii-rust v0.1.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 2.06s
[INFO] running `Command { std: "docker" "inspect" "6985823efb3588a878b19ecce6fec50785f473fa9b2df544c8adfaf68e3e55e2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6985823efb3588a878b19ecce6fec50785f473fa9b2df544c8adfaf68e3e55e2", kill_on_drop: false }`
[INFO] [stdout] 6985823efb3588a878b19ecce6fec50785f473fa9b2df544c8adfaf68e3e55e2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 21c45725e10680e9d3a07fdf17ddf4fad44109e550b388834d7ebfc2bb7b626e
[INFO] running `Command { std: "docker" "start" "-a" "21c45725e10680e9d3a07fdf17ddf4fad44109e550b388834d7ebfc2bb7b626e", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.10s
[INFO] [stderr]      Running unittests src/lib/mod.rs (/opt/rustwide/target/debug/deps/termii_rust-a21dbaa49852893c)
[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] [stderr]    Doc-tests termii_rust
[INFO] [stdout] 
[INFO] [stdout] running 40 tests
[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/mod.rs - async_impl (line 33) ... 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/insights/balance.rs - async_impl::rest::insights::balance::Balance<'a>::get (line 26) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 58) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 44) ... 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/insights/mod.rs - async_impl::rest::insights (line 59) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::create (line 73) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 49) ... 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/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::delete (line 172) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status<'a>::get (line 25) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/insights/search.rs - async_impl::rest::insights::search::Search<'a>::get (line 26) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 60) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::update (line 118) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send_bulk (line 70) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send (line 30) ... 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/switch/mod.rs - async_impl::rest::switch (line 24) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 44) ... 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/switch/mod.rs - async_impl::rest::switch (line 48) ... 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 75) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/number.rs - async_impl::rest::switch::number::Number<'a>::send (line 28) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::request (line 68) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::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/token/mod.rs - async_impl::rest::token (line 61) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates<'a>::send (line 28) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 6) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken<'a>::send (line 29) ... 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<'a>::send (line 29) ... FAILED
[INFO] [stdout] test src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken<'a>::send (line 29) ... FAILED
[INFO] [stdout] test src/lib/mod.rs - (line 16) ... FAILED
[INFO] [stdout] test src/lib/mod.rs - (line 41) ... FAILED
[INFO] [stdout] test src/lib/mod.rs - (line 72) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[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/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/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/insights/balance.rs - async_impl::rest::insights::balance::Balance<'a>::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/history.rs - async_impl::rest::insights::history::History<'a>::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/insights/history.rs - async_impl::rest::insights::history::History<'a>::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 method 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: method 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 `HistoryItem`, found `Vec<HistoryItem>`
[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/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 method 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: method 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 `HistoryItem`, found `Vec<HistoryItem>`
[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/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/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::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:92:5
[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] 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/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::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] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/campaign.rs:54:65
[INFO] [stdout]   |
[INFO] [stdout] 8 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.get(Some(1)).await.unwrap();
[INFO] [stdout]   |                                                                 ^^^^^-^
[INFO] [stdout]   |                                                                      |
[INFO] [stdout]   |                                                                      this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]  --> /rustc/1b7dd2252b99671ce5d1cb9664c5f8636329436d/library/core/src/option.rs:572:5
[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/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/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::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:183:5
[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] 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/status.rs - async_impl::rest::insights::status::Status<'a>::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/search.rs - async_impl::rest::insights::search::Search<'a>::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/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::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/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::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:140:5
[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] 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<'a>::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:92:5
[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] 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/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::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 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] help: the type constructed contains `{integer}` due to the type of the argument passed
[INFO] [stdout]  --> src/lib/async_impl/rest/switch/mod.rs:11:65
[INFO] [stdout]   |
[INFO] [stdout] 8 | let phonebooks: Vec<PhoneBookItem> = client.switch.campaign.get(Some(1)).await.unwrap();
[INFO] [stdout]   |                                                                 ^^^^^-^
[INFO] [stdout]   |                                                                      |
[INFO] [stdout]   |                                                                      this argument influences the type of `Some`
[INFO] [stdout] note: tuple variant defined here
[INFO] [stdout]  --> /rustc/1b7dd2252b99671ce5d1cb9664c5f8636329436d/library/core/src/option.rs:572:5
[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/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/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::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/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/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/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 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/switch/number.rs - async_impl::rest::switch::number::Number<'a>::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/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::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:83:5
[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] 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/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::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:104:5
[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] 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 `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 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/switch/templates.rs - async_impl::rest::switch::templates::Templates<'a>::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:50:5
[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] 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 `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:21:5
[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] 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 `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/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken<'a>::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:44:5
[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] 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 `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/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<'a>::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<'a>::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 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/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] 
[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<'a>::get (line 26)
[INFO] [stdout]     src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 44)
[INFO] [stdout]     src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::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<'a>::get (line 26)
[INFO] [stdout]     src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status<'a>::get (line 25)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::create (line 73)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::delete (line 172)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 49)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 60)
[INFO] [stdout]     src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::update (line 118)
[INFO] [stdout]     src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send (line 30)
[INFO] [stdout]     src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::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<'a>::send (line 28)
[INFO] [stdout]     src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 44)
[INFO] [stdout]     src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 55)
[INFO] [stdout]     src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::request (line 68)
[INFO] [stdout]     src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates<'a>::send (line 28)
[INFO] [stdout]     src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken<'a>::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<'a>::send (line 29)
[INFO] [stdout]     src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken<'a>::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 1.32s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "21c45725e10680e9d3a07fdf17ddf4fad44109e550b388834d7ebfc2bb7b626e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "21c45725e10680e9d3a07fdf17ddf4fad44109e550b388834d7ebfc2bb7b626e", kill_on_drop: false }`
[INFO] [stdout] 21c45725e10680e9d3a07fdf17ddf4fad44109e550b388834d7ebfc2bb7b626e
