[INFO] fetching crate intasend 0.2.0...
[INFO] testing intasend-0.2.0 against nightly-2024-10-28 for randomize-layout
[INFO] extracting crate intasend 0.2.0 into /workspace/builds/worker-3-tc1/source
[INFO] validating manifest of crates.io crate intasend 0.2.0 on toolchain nightly-2024-10-28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate intasend 0.2.0
[INFO] finished tweaking crates.io crate intasend 0.2.0
[INFO] tweaked toml for crates.io crate intasend 0.2.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 181 packages to latest compatible versions
[INFO] [stderr]       Adding reqwest v0.11.27 (available: v0.12.9)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] fae3534b1592a29635b6f5110b4087eb41a6224cde0f6fd653e7b14df4750d6a
[INFO] running `Command { std: "docker" "start" "-a" "fae3534b1592a29635b6f5110b4087eb41a6224cde0f6fd653e7b14df4750d6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fae3534b1592a29635b6f5110b4087eb41a6224cde0f6fd653e7b14df4750d6a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fae3534b1592a29635b6f5110b4087eb41a6224cde0f6fd653e7b14df4750d6a", kill_on_drop: false }`
[INFO] [stdout] fae3534b1592a29635b6f5110b4087eb41a6224cde0f6fd653e7b14df4750d6a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 00205da71f4e5300a76dd5ca50e0fa36aa5f747a32bf221c62c747685e905a4e
[INFO] running `Command { std: "docker" "start" "-a" "00205da71f4e5300a76dd5ca50e0fa36aa5f747a32bf221c62c747685e905a4e", kill_on_drop: false }`
[INFO] [stderr]    Compiling pin-project-lite v0.2.15
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling bytes v1.8.0
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling openssl-sys v0.9.104
[INFO] [stderr]    Compiling serde v1.0.214
[INFO] [stderr]    Compiling syn v2.0.86
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling mio v1.0.2
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling httparse v1.9.5
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling serde_json v1.0.132
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling rust_decimal v1.36.0
[INFO] [stderr]    Compiling tower-service v0.3.3
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling anyhow v1.0.92
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling openssl v0.10.68
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling ipnet v2.10.1
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling rust_decimal_macros v1.36.0
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.214
[INFO] [stderr]    Compiling thiserror-impl v1.0.66
[INFO] [stderr]    Compiling tokio v1.41.0
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling thiserror v1.0.66
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling tokio-util v0.7.12
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling h2 v0.3.26
[INFO] [stderr]    Compiling hyper v0.14.31
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.27
[INFO] [stderr]    Compiling intasend v0.2.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.64s
[INFO] running `Command { std: "docker" "inspect" "00205da71f4e5300a76dd5ca50e0fa36aa5f747a32bf221c62c747685e905a4e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "00205da71f4e5300a76dd5ca50e0fa36aa5f747a32bf221c62c747685e905a4e", kill_on_drop: false }`
[INFO] [stdout] 00205da71f4e5300a76dd5ca50e0fa36aa5f747a32bf221c62c747685e905a4e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 3525be2186b75f97221dbf79694b8c8dc90ae4bff5d3b9dfe7e1a5a5a780a935
[INFO] running `Command { std: "docker" "start" "-a" "3525be2186b75f97221dbf79694b8c8dc90ae4bff5d3b9dfe7e1a5a5a780a935", kill_on_drop: false }`
[INFO] [stderr]    Compiling intasend v0.2.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.49s
[INFO] running `Command { std: "docker" "inspect" "3525be2186b75f97221dbf79694b8c8dc90ae4bff5d3b9dfe7e1a5a5a780a935", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3525be2186b75f97221dbf79694b8c8dc90ae4bff5d3b9dfe7e1a5a5a780a935", kill_on_drop: false }`
[INFO] [stdout] 3525be2186b75f97221dbf79694b8c8dc90ae4bff5d3b9dfe7e1a5a5a780a935
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 3b5fbbb7779a95527e36073758e82406633757df3f11fb344deaa20a0d70f278
[INFO] running `Command { std: "docker" "start" "-a" "3b5fbbb7779a95527e36073758e82406633757df3f11fb344deaa20a0d70f278", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/intasend-fbcf46fc7e8bc65a)
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test intasend::collection::tests::mpesa_stk_push_test ... ok
[INFO] [stdout] test tests::it_works ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests intasend
[INFO] [stdout] 
[INFO] [stdout] running 25 tests
[INFO] [stdout] test src/intasend/mod.rs - intasend::Intasend::refunds (line 118) ... FAILED
[INFO] [stdout] test src/intasend/collection.rs - intasend::collection::CollectionsAPI (line 19) ... FAILED
[INFO] [stdout] test src/intasend/mod.rs - intasend::Intasend::checkout (line 88) ... FAILED
[INFO] [stdout] test src/intasend/mod.rs - intasend::Intasend::collection (line 73) ... FAILED
[INFO] [stdout] test src/intasend/mod.rs - intasend::Intasend::wallets (line 133) ... FAILED
[INFO] [stdout] test src/intasend/mod.rs - intasend::Intasend::payouts (line 103) ... FAILED
[INFO] [stdout] test src/intasend/collection.rs - intasend::collection::CollectionsAPI::mpesa_stk_push (line 47) ... FAILED
[INFO] [stdout] test src/intasend/refunds.rs - intasend::refunds::RefundsAPI::create (line 66) ... FAILED
[INFO] [stdout] test src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI (line 20) ... FAILED
[INFO] [stdout] test src/intasend/payouts.rs - intasend::payouts::PayoutsAPI (line 15) ... FAILED
[INFO] [stdout] test src/intasend/refunds.rs - intasend::refunds::RefundsAPI (line 16) ... FAILED
[INFO] [stdout] test src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI::details (line 138) ... FAILED
[INFO] [stdout] test src/intasend/refunds.rs - intasend::refunds::RefundsAPI::get (line 97) ... FAILED
[INFO] [stdout] test src/intasend/mod.rs - intasend::Intasend::new (line 48) ... FAILED
[INFO] [stdout] test src/intasend/collection.rs - intasend::collection::CollectionsAPI::status (line 98) ... FAILED
[INFO] [stdout] test src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI::initiate (line 46) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI (line 17) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI::transactions (line 123) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI::fund_mpesa (line 187) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI::intra_transfer (line 150) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI::details (line 66) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI::fund_checkout (line 222) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI::list (line 44) ... FAILED
[INFO] [stdout] test src/intasend/refunds.rs - intasend::refunds::RefundsAPI::list (line 42) ... FAILED
[INFO] [stdout] test src/intasend/wallets.rs - intasend::wallets::WalletsAPI::create (line 95) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/intasend/mod.rs - intasend::Intasend::refunds (line 118) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Refunds` in this scope
[INFO] [stdout]  --> src/intasend/mod.rs:121:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/mod.rs:121:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |                        ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/collection.rs - intasend::collection::CollectionsAPI (line 19) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `dotenvy`
[INFO] [stdout]  --> src/intasend/collection.rs:22:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use dotenvy;
[INFO] [stdout]   |     ^^^^^^^ no external crate `dotenvy`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/mod.rs - intasend::Intasend::checkout (line 88) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Checkout` in this scope
[INFO] [stdout]  --> src/intasend/mod.rs:91:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | let checkout: Checkout = intasend.checkout();
[INFO] [stdout]   |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/mod.rs:91:26
[INFO] [stdout]   |
[INFO] [stdout] 6 | let checkout: Checkout = intasend.checkout();
[INFO] [stdout]   |                          ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/mod.rs - intasend::Intasend::collection (line 73) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Collection` in this scope
[INFO] [stdout]  --> src/intasend/mod.rs:76:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | let collection: Collection = intasend.collection();
[INFO] [stdout]   |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/mod.rs:76:30
[INFO] [stdout]   |
[INFO] [stdout] 6 | let collection: Collection = intasend.collection();
[INFO] [stdout]   |                              ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/mod.rs - intasend::Intasend::wallets (line 133) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Wallets` in this scope
[INFO] [stdout]  --> src/intasend/mod.rs:136:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets: Wallets = intasend.refunds();
[INFO] [stdout]   |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/mod.rs:136:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets: Wallets = intasend.refunds();
[INFO] [stdout]   |                        ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/mod.rs - intasend::Intasend::payouts (line 103) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Payouts` in this scope
[INFO] [stdout]  --> src/intasend/mod.rs:106:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let payouts: Payouts = intasend.payouts();
[INFO] [stdout]   |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/mod.rs:106:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | let payouts: Payouts = intasend.payouts();
[INFO] [stdout]   |                        ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `payout` in this scope
[INFO] [stdout]  --> src/intasend/mod.rs:107:37
[INFO] [stdout]   |
[INFO] [stdout] 7 | println!("Payouts instance: {:#?}", payout);
[INFO] [stdout]   |                                     ^^^^^^ help: a local variable with a similar name exists: `payouts`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/collection.rs - intasend::collection::CollectionsAPI::mpesa_stk_push (line 47) stdout ----
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/collection.rs:50:44
[INFO] [stdout]   |
[INFO] [stdout] 6 | let collection: intasend::CollectionsAPI = intasend.collection();
[INFO] [stdout]   |                                            ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MpesaStkPushRequest` in this scope
[INFO] [stdout]  --> src/intasend/collection.rs:52:23
[INFO] [stdout]   |
[INFO] [stdout] 8 | let stkpush_request = MpesaStkPushRequest {
[INFO] [stdout]   |                       ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::MpesaStkPushRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MpesaStkPushResponse` in this scope
[INFO] [stdout]   --> src/intasend/collection.rs:59:23
[INFO] [stdout]    |
[INFO] [stdout] 15 | let stkpush_response: MpesaStkPushResponse = collection.mpesa_stk_push(stkpush_request).await?;
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::MpesaStkPushResponse;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/collection.rs:59:89
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_collection_rs_47_0() {
[INFO] [stdout]    |                                      -------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 15 | let stkpush_response: MpesaStkPushResponse = collection.mpesa_stk_push(stkpush_request).await?;
[INFO] [stdout]    |                                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/refunds.rs - intasend::refunds::RefundsAPI::create (line 66) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Refunds` in this scope
[INFO] [stdout]  --> src/intasend/refunds.rs:69:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/refunds.rs:69:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |                        ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RefundRequest` in this scope
[INFO] [stdout]  --> src/intasend/refunds.rs:71:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | let refund_request = RefundRequest {
[INFO] [stdout]   |                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::RefundRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decimal`
[INFO] [stdout]  --> src/intasend/refunds.rs:72:13
[INFO] [stdout]   |
[INFO] [stdout] 9 |     amount: Decimal::new(10000, 2),
[INFO] [stdout]   |             ^^^^^^^ use of undeclared type `Decimal`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use rust_decimal::Decimal;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Refund` in this scope
[INFO] [stdout]   --> src/intasend/refunds.rs:79:21
[INFO] [stdout]    |
[INFO] [stdout] 16 | let created_refund: Refund = refunds.create(refund_request).await?;
[INFO] [stdout]    |                     ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Refund;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/refunds.rs:79:61
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_refunds_rs_66_0() {
[INFO] [stdout]    |                                      ----------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 16 | let created_refund: Refund = refunds.create(refund_request).await?;
[INFO] [stdout]    |                                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI (line 20) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/checkout.rs:25:27
[INFO] [stdout]   |
[INFO] [stdout] 8 | let intasend_public_key = env::var("INTASEND_PUBLIC_KEY").expect("INTASEND_PUBLIC_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/checkout.rs:26:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | let intasend_secret_key = env::var("INTASEND_SECRET_KEY").expect("INTASEND_SECRET_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intasend`
[INFO] [stdout]   --> src/intasend/checkout.rs:29:16
[INFO] [stdout]    |
[INFO] [stdout] 12 | let intasend = Intasend::new(
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Intasend`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Intasend;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Checkout` in this scope
[INFO] [stdout]   --> src/intasend/checkout.rs:36:15
[INFO] [stdout]    |
[INFO] [stdout] 19 | let checkout: Checkout = intasend.checkout();
[INFO] [stdout]    |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope
[INFO] [stdout]  --> src/intasend/checkout.rs:23:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | dotenv().ok();
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/payouts.rs - intasend::payouts::PayoutsAPI (line 15) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/payouts.rs:20:27
[INFO] [stdout]   |
[INFO] [stdout] 8 | let intasend_public_key = env::var("INTASEND_PUBLIC_KEY").expect("INTASEND_PUBLIC_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/payouts.rs:21:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | let intasend_secret_key = env::var("INTASEND_SECRET_KEY").expect("INTASEND_SECRET_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intasend`
[INFO] [stdout]   --> src/intasend/payouts.rs:24:16
[INFO] [stdout]    |
[INFO] [stdout] 12 | let intasend = Intasend::new(
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Intasend`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Intasend;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Payouts` in this scope
[INFO] [stdout]   --> src/intasend/payouts.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 19 | let payout: Payouts = intasend.payout();
[INFO] [stdout]    |             ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope
[INFO] [stdout]  --> src/intasend/payouts.rs:18:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | dotenv().ok();
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/refunds.rs - intasend::refunds::RefundsAPI (line 16) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/refunds.rs:21:27
[INFO] [stdout]   |
[INFO] [stdout] 8 | let intasend_public_key = env::var("INTASEND_PUBLIC_KEY").expect("INTASEND_PUBLIC_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/refunds.rs:22:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | let intasend_secret_key = env::var("INTASEND_SECRET_KEY").expect("INTASEND_SECRET_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intasend`
[INFO] [stdout]   --> src/intasend/refunds.rs:25:16
[INFO] [stdout]    |
[INFO] [stdout] 12 | let intasend = Intasend::new(
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Intasend`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Intasend;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Refunds` in this scope
[INFO] [stdout]   --> src/intasend/refunds.rs:32:14
[INFO] [stdout]    |
[INFO] [stdout] 19 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]    |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope
[INFO] [stdout]  --> src/intasend/refunds.rs:19:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | dotenv().ok();
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI::details (line 138) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Checkout` in this scope
[INFO] [stdout]  --> src/intasend/checkout.rs:141:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | let checkout: Checkout = intasend.checkout();
[INFO] [stdout]   |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/checkout.rs:141:26
[INFO] [stdout]   |
[INFO] [stdout] 6 | let checkout: Checkout = intasend.checkout();
[INFO] [stdout]   |                          ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CheckoutDetailsRequest` in this scope
[INFO] [stdout]  --> src/intasend/checkout.rs:143:28
[INFO] [stdout]   |
[INFO] [stdout] 8 | let checkout_details_req = CheckoutDetailsRequest {
[INFO] [stdout]   |                            ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::CheckoutDetailsRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `CheckoutDetailsResponse` in this scope
[INFO] [stdout]   --> src/intasend/checkout.rs:148:32
[INFO] [stdout]    |
[INFO] [stdout] 13 | let checkout_details_response: CheckoutDetailsResponse = checkout.details(checkout_details_req).await?;
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::CheckoutDetailsResponse;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/checkout.rs:148:97
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_checkout_rs_138_0() {
[INFO] [stdout]    |                                      ------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 | let checkout_details_response: CheckoutDetailsResponse = checkout.details(checkout_details_req).await?;
[INFO] [stdout]    |                                                                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/refunds.rs - intasend::refunds::RefundsAPI::get (line 97) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Refunds` in this scope
[INFO] [stdout]  --> src/intasend/refunds.rs:100:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/refunds.rs:100:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |                        ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RefundRequest` in this scope
[INFO] [stdout]  --> src/intasend/refunds.rs:102:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | let refund_request = RefundRequest {
[INFO] [stdout]   |                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::RefundRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decimal`
[INFO] [stdout]  --> src/intasend/refunds.rs:103:13
[INFO] [stdout]   |
[INFO] [stdout] 9 |     amount: Decimal::new(10000, 2),
[INFO] [stdout]   |             ^^^^^^^ use of undeclared type `Decimal`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use rust_decimal::Decimal;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Refund` in this scope
[INFO] [stdout]   --> src/intasend/refunds.rs:110:21
[INFO] [stdout]    |
[INFO] [stdout] 16 | let created_refund: Refund = refunds.create(refund_request).await?;
[INFO] [stdout]    |                     ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Refund;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/refunds.rs:110:61
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_refunds_rs_97_0() {
[INFO] [stdout]    |                                      ----------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 16 | let created_refund: Refund = refunds.create(refund_request).await?;
[INFO] [stdout]    |                                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/refunds.rs:113:64
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_refunds_rs_97_0() {
[INFO] [stdout]    |                                      ----------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 | let specific_refund = refunds.get("chargeback_id".to_string()).await?;
[INFO] [stdout]    |                                                                ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/mod.rs - intasend::Intasend::new (line 48) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/mod.rs:53:27
[INFO] [stdout]   |
[INFO] [stdout] 8 | let intasend_public_key = env::var("INTASEND_PUBLIC_KEY").expect("INTASEND_PUBLIC_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/mod.rs:54:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | let intasend_secret_key = env::var("INTASEND_SECRET_KEY").expect("INTASEND_SECRET_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intasend`
[INFO] [stdout]   --> src/intasend/mod.rs:57:16
[INFO] [stdout]    |
[INFO] [stdout] 12 | let intasend = Intasend::new(
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Intasend`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Intasend;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope
[INFO] [stdout]  --> src/intasend/mod.rs:51:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | dotenv().ok();
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/collection.rs - intasend::collection::CollectionsAPI::status (line 98) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Collection` in this scope
[INFO] [stdout]  --> src/intasend/collection.rs:101:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | let collection: Collection = intasend.collection();
[INFO] [stdout]   |                 ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/collection.rs:101:30
[INFO] [stdout]   |
[INFO] [stdout] 6 | let collection: Collection = intasend.collection();
[INFO] [stdout]   |                              ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `MpesaStkPushRequest` in this scope
[INFO] [stdout]  --> src/intasend/collection.rs:103:23
[INFO] [stdout]   |
[INFO] [stdout] 8 | let stkpush_request = MpesaStkPushRequest {
[INFO] [stdout]   |                       ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::MpesaStkPushRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `MpesaStkPushResponse` in this scope
[INFO] [stdout]   --> src/intasend/collection.rs:110:23
[INFO] [stdout]    |
[INFO] [stdout] 15 | let stkpush_response: MpesaStkPushResponse = collection.mpesa_stk_push(stkpush_request).await?;
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::MpesaStkPushResponse;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StkPushStatusRequest` in this scope
[INFO] [stdout]   --> src/intasend/collection.rs:116:24
[INFO] [stdout]    |
[INFO] [stdout] 21 | let stkpushstatus_req: StkPushStatusRequest = StkPushStatusRequest {
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::StkPushStatusRequest;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `StkPushStatusRequest` in this scope
[INFO] [stdout]   --> src/intasend/collection.rs:116:47
[INFO] [stdout]    |
[INFO] [stdout] 21 | let stkpushstatus_req: StkPushStatusRequest = StkPushStatusRequest {
[INFO] [stdout]    |                                               ^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::StkPushStatusRequest;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `StkPushStatusResponse` in this scope
[INFO] [stdout]   --> src/intasend/collection.rs:122:20
[INFO] [stdout]    |
[INFO] [stdout] 27 | let stkpushstatus: StkPushStatusResponse = collection.status(stkpushstatus_req).await?;
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::StkPushStatusResponse;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/collection.rs:110:89
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_collection_rs_98_0() {
[INFO] [stdout]    |                                      -------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 15 | let stkpush_response: MpesaStkPushResponse = collection.mpesa_stk_push(stkpush_request).await?;
[INFO] [stdout]    |                                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/collection.rs:114:56
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_collection_rs_98_0() {
[INFO] [stdout]    |                                      -------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 | tokio::time::sleep(std::time::Duration::from_secs(30)).await;
[INFO] [stdout]    |                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/collection.rs:122:81
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_collection_rs_98_0() {
[INFO] [stdout]    |                                      -------------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 27 | let stkpushstatus: StkPushStatusResponse = collection.status(stkpushstatus_req).await?;
[INFO] [stdout]    |                                                                                 ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI::initiate (line 46) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Checkout` in this scope
[INFO] [stdout]  --> src/intasend/checkout.rs:49:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | let checkout: Checkout = intasend.checkout();
[INFO] [stdout]   |               ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/checkout.rs:49:26
[INFO] [stdout]   |
[INFO] [stdout] 6 | let checkout: Checkout = intasend.checkout();
[INFO] [stdout]   |                          ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `CheckoutRequest` in this scope
[INFO] [stdout]  --> src/intasend/checkout.rs:51:20
[INFO] [stdout]   |
[INFO] [stdout] 8 | let checkout_req = CheckoutRequest {
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::CheckoutRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CheckoutMethod`
[INFO] [stdout]   --> src/intasend/checkout.rs:55:18
[INFO] [stdout]    |
[INFO] [stdout] 12 |     method: Some(CheckoutMethod::CARDPAYMENT.as_str()),
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^ use of undeclared type `CheckoutMethod`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::CheckoutMethod;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decimal`
[INFO] [stdout]   --> src/intasend/checkout.rs:56:13
[INFO] [stdout]    |
[INFO] [stdout] 13 |     amount: Decimal::new(10, 2),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared type `Decimal`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use rust_decimal::Decimal;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Currency`
[INFO] [stdout]   --> src/intasend/checkout.rs:57:15
[INFO] [stdout]    |
[INFO] [stdout] 14 |     currency: Currency::USD,
[INFO] [stdout]    |               ^^^^^^^^ use of undeclared type `Currency`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Currency;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `CheckoutResponse` in this scope
[INFO] [stdout]   --> src/intasend/checkout.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 17 | let checkout_response: CheckoutResponse = checkout.initiate(checkout_req).await?;
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::CheckoutResponse;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/intasend/checkout.rs:60:75
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_checkout_rs_46_0() {
[INFO] [stdout]    |                                      ------------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 17 | let checkout_response: CheckoutResponse = checkout.initiate(checkout_req).await?;
[INFO] [stdout]    |                                                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI (line 17) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/wallets.rs:22:27
[INFO] [stdout]   |
[INFO] [stdout] 8 | let intasend_public_key = env::var("INTASEND_PUBLIC_KEY").expect("INTASEND_PUBLIC_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/intasend/wallets.rs:23:27
[INFO] [stdout]   |
[INFO] [stdout] 9 | let intasend_secret_key = env::var("INTASEND_SECRET_KEY").expect("INTASEND_SECRET_KEY must be set");
[INFO] [stdout]   |                           ^^^ use of undeclared crate or module `env`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 3 + use std::env;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Intasend`
[INFO] [stdout]   --> src/intasend/wallets.rs:26:16
[INFO] [stdout]    |
[INFO] [stdout] 12 | let intasend = Intasend::new(
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type `Intasend`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Intasend;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WalletsAPI` in this scope
[INFO] [stdout]   --> src/intasend/wallets.rs:33:18
[INFO] [stdout]    |
[INFO] [stdout] 19 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]    |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::WalletsAPI;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `dotenv` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:20:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | dotenv().ok();
[INFO] [stdout]   | ^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI::transactions (line 123) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `WalletsAPI` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:126:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletsAPI;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/wallets.rs:126:31
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                               ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wallet_id` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:128:53
[INFO] [stdout]   |
[INFO] [stdout] 8 | let wallet_transanctions = wallets_api.transactions(wallet_id.clone()).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/intasend/wallets.rs:128:72
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_wallets_rs_123_0() {
[INFO] [stdout]   |                                      ------------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let wallet_transanctions = wallets_api.transactions(wallet_id.clone()).await?;
[INFO] [stdout]   |                                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI::fund_mpesa (line 187) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FundMpesaRequest` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:188:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | let fund_mpesa_payload = FundMpesaRequest {
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use intasend::FundMpesaRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Provider`
[INFO] [stdout]  --> src/intasend/wallets.rs:189:11
[INFO] [stdout]   |
[INFO] [stdout] 4 |   method: Provider::Mpesa,
[INFO] [stdout]   |           ^^^^^^^^ use of undeclared type `Provider`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use intasend::Provider;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Currency`
[INFO] [stdout]  --> src/intasend/wallets.rs:190:13
[INFO] [stdout]   |
[INFO] [stdout] 5 |   currency: Currency::Kes,
[INFO] [stdout]   |             ^^^^^^^^ use of undeclared type `Currency`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use intasend::Currency;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decimal`
[INFO] [stdout]  --> src/intasend/wallets.rs:191:11
[INFO] [stdout]   |
[INFO] [stdout] 6 |   amount: Decimal::new(1000, 2),
[INFO] [stdout]   |           ^^^^^^^ use of undeclared type `Decimal`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rust_decimal::Decimal;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wallets_api` in this scope
[INFO] [stdout]   --> src/intasend/wallets.rs:195:27
[INFO] [stdout]    |
[INFO] [stdout] 10 | let fund_mpesa_response = wallets_api.fund_mpesa(fund_mpesa_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/intasend/wallets.rs:195:70
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_wallets_rs_187_0() {
[INFO] [stdout]    |                                      ------------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 10 | let fund_mpesa_response = wallets_api.fund_mpesa(fund_mpesa_payload).await?;
[INFO] [stdout]    |                                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI::intra_transfer (line 150) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `WalletsAPI` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:153:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletsAPI;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/wallets.rs:153:31
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                               ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WalletIntraTransferRequest` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:155:30
[INFO] [stdout]   |
[INFO] [stdout] 8 | let intra_transfer_payload = WalletIntraTransferRequest {
[INFO] [stdout]   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletIntraTransferRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decimal`
[INFO] [stdout]   --> src/intasend/wallets.rs:157:13
[INFO] [stdout]    |
[INFO] [stdout] 10 |     amount: Decimal::new(1000, 2),
[INFO] [stdout]    |             ^^^^^^^ use of undeclared type `Decimal`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use rust_decimal::Decimal;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `source_wallet_id` in this scope
[INFO] [stdout]   --> src/intasend/wallets.rs:161:60
[INFO] [stdout]    |
[INFO] [stdout] 14 | let wallets_transfer_response = wallets_api.intra_transfer(source_wallet_id, intra_transfer_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/intasend/wallets.rs:161:102
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_wallets_rs_150_0() {
[INFO] [stdout]    |                                      ------------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 14 | let wallets_transfer_response = wallets_api.intra_transfer(source_wallet_id, intra_transfer_payload).await?;
[INFO] [stdout]    |                                                                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI::details (line 66) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `WalletsAPI` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:69:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletsAPI;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/wallets.rs:69:31
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                               ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Wallet` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:71:21
[INFO] [stdout]   |
[INFO] [stdout] 8 | let wallet_details: Wallet = wallets_api.details(wallet_id).await?;
[INFO] [stdout]   |                     ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::Wallet;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wallet_id` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:71:50
[INFO] [stdout]   |
[INFO] [stdout] 8 | let wallet_details: Wallet = wallets_api.details(wallet_id).await?;
[INFO] [stdout]   |                                                  ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wallet_list_info` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:72:44
[INFO] [stdout]   |
[INFO] [stdout] 9 | println!("[#] Wallet Details Info: {:#?}", wallet_list_info);
[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/intasend/wallets.rs:71:61
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_wallets_rs_66_0() {
[INFO] [stdout]   |                                      ----------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let wallet_details: Wallet = wallets_api.details(wallet_id).await?;
[INFO] [stdout]   |                                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI::fund_checkout (line 222) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FundCheckoutRequest` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:223:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | let fund_checkout_req = FundCheckoutRequest {
[INFO] [stdout]   |                         ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use intasend::FundCheckoutRequest;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Provider`
[INFO] [stdout]  --> src/intasend/wallets.rs:227:18
[INFO] [stdout]   |
[INFO] [stdout] 7 |     method: Some(Provider::Bank),
[INFO] [stdout]   |                  ^^^^^^^^ use of undeclared type `Provider`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use intasend::Provider;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Decimal`
[INFO] [stdout]  --> src/intasend/wallets.rs:228:13
[INFO] [stdout]   |
[INFO] [stdout] 8 |     amount: Decimal::new(100000, 2), // 1000.00
[INFO] [stdout]   |             ^^^^^^^ use of undeclared type `Decimal`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use rust_decimal::Decimal;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Currency`
[INFO] [stdout]  --> src/intasend/wallets.rs:229:15
[INFO] [stdout]   |
[INFO] [stdout] 9 |     currency: Currency::Kes,
[INFO] [stdout]   |               ^^^^^^^^ use of undeclared type `Currency`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 2 + use intasend::Currency;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wallets_api` in this scope
[INFO] [stdout]   --> src/intasend/wallets.rs:235:30
[INFO] [stdout]    |
[INFO] [stdout] 15 | let fund_checkout_response = wallets_api.fund_checkout(fund_checkout_req).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/intasend/wallets.rs:235:75
[INFO] [stdout]    |
[INFO] [stdout] 2  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_wallets_rs_222_0() {
[INFO] [stdout]    |                                      ------------------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 15 | let fund_checkout_response = wallets_api.fund_checkout(fund_checkout_req).await?;
[INFO] [stdout]    |                                                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0422`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI::list (line 44) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `WalletsAPI` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:47:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletsAPI;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/wallets.rs:47:31
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                               ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `WalletListResponse` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:49:23
[INFO] [stdout]   |
[INFO] [stdout] 8 | let wallet_list_info: WalletListResponse = wallets_api.list().await?;
[INFO] [stdout]   |                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletListResponse;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/intasend/wallets.rs:49:63
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_wallets_rs_44_0() {
[INFO] [stdout]   |                                      ----------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let wallet_list_info: WalletListResponse = wallets_api.list().await?;
[INFO] [stdout]   |                                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/refunds.rs - intasend::refunds::RefundsAPI::list (line 42) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `Refunds` in this scope
[INFO] [stdout]  --> src/intasend/refunds.rs:45:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |              ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/refunds.rs:45:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | let refunds: Refunds = intasend.refunds();
[INFO] [stdout]   |                        ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `checkout_response` in this scope
[INFO] [stdout]  --> src/intasend/refunds.rs:48:38
[INFO] [stdout]   |
[INFO] [stdout] 9 | println!("Checkout response: {:#?}", checkout_response);
[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/intasend/refunds.rs:47:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_refunds_rs_42_0() {
[INFO] [stdout]   |                                      ----------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | let refund_list = refunds.list().await?;
[INFO] [stdout]   |                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/intasend/wallets.rs - intasend::wallets::WalletsAPI::create (line 95) stdout ----
[INFO] [stdout] error[E0412]: cannot find type `WalletsAPI` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:98:18
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                  ^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletsAPI;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found crate `intasend`
[INFO] [stdout]  --> src/intasend/wallets.rs:98:31
[INFO] [stdout]   |
[INFO] [stdout] 6 | let wallets_api: WalletsAPI = intasend.wallets();
[INFO] [stdout]   |                               ^^^^^^^^- help: use the path separator to refer to an item: `::`
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WalletCreateDetails` in this scope
[INFO] [stdout]  --> src/intasend/wallets.rs:100:15
[INFO] [stdout]   |
[INFO] [stdout] 8 | let payload = WalletCreateDetails {
[INFO] [stdout]   |               ^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::WalletCreateDetails;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Currency`
[INFO] [stdout]  --> src/intasend/wallets.rs:101:15
[INFO] [stdout]   |
[INFO] [stdout] 9 |     currency: Currency::Kes,
[INFO] [stdout]   |               ^^^^^^^^ use of undeclared type `Currency`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 3 + use intasend::Currency;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WalletType`
[INFO] [stdout]   --> src/intasend/wallets.rs:102:18
[INFO] [stdout]    |
[INFO] [stdout] 10 |     wallet_type: WalletType::Working,
[INFO] [stdout]    |                  ^^^^^^^^^^ use of undeclared type `WalletType`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::WalletType;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Wallet` in this scope
[INFO] [stdout]   --> src/intasend/wallets.rs:107:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | let created_wallet: Wallet = wallets_api.create(payload).await?;
[INFO] [stdout]    |                     ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 3  + use intasend::Wallet;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `wallet_list_info` in this scope
[INFO] [stdout]   --> src/intasend/wallets.rs:108:44
[INFO] [stdout]    |
[INFO] [stdout] 16 | println!("[#] Wallet Details Info: {:#?}", wallet_list_info);
[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/intasend/wallets.rs:107:58
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_intasend_wallets_rs_95_0() {
[INFO] [stdout]    |                                      ----------------------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 15 | let created_wallet: Wallet = wallets_api.create(payload).await?;
[INFO] [stdout]    |                                                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0423, E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI (line 20)
[INFO] [stdout]     src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI::details (line 138)
[INFO] [stdout]     src/intasend/checkout.rs - intasend::checkout::CheckoutsAPI::initiate (line 46)
[INFO] [stdout]     src/intasend/collection.rs - intasend::collection::CollectionsAPI (line 19)
[INFO] [stdout]     src/intasend/collection.rs - intasend::collection::CollectionsAPI::mpesa_stk_push (line 47)
[INFO] [stdout]     src/intasend/collection.rs - intasend::collection::CollectionsAPI::status (line 98)
[INFO] [stdout]     src/intasend/mod.rs - intasend::Intasend::checkout (line 88)
[INFO] [stdout]     src/intasend/mod.rs - intasend::Intasend::collection (line 73)
[INFO] [stdout]     src/intasend/mod.rs - intasend::Intasend::new (line 48)
[INFO] [stdout]     src/intasend/mod.rs - intasend::Intasend::payouts (line 103)
[INFO] [stdout]     src/intasend/mod.rs - intasend::Intasend::refunds (line 118)
[INFO] [stdout]     src/intasend/mod.rs - intasend::Intasend::wallets (line 133)
[INFO] [stdout]     src/intasend/payouts.rs - intasend::payouts::PayoutsAPI (line 15)
[INFO] [stdout]     src/intasend/refunds.rs - intasend::refunds::RefundsAPI (line 16)
[INFO] [stdout]     src/intasend/refunds.rs - intasend::refunds::RefundsAPI::create (line 66)
[INFO] [stdout]     src/intasend/refunds.rs - intasend::refunds::RefundsAPI::get (line 97)
[INFO] [stdout]     src/intasend/refunds.rs - intasend::refunds::RefundsAPI::list (line 42)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI (line 17)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI::create (line 95)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI::details (line 66)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI::fund_checkout (line 222)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI::fund_mpesa (line 187)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI::intra_transfer (line 150)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI::list (line 44)
[INFO] [stdout]     src/intasend/wallets.rs - intasend::wallets::WalletsAPI::transactions (line 123)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 25 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "3b5fbbb7779a95527e36073758e82406633757df3f11fb344deaa20a0d70f278", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3b5fbbb7779a95527e36073758e82406633757df3f11fb344deaa20a0d70f278", kill_on_drop: false }`
[INFO] [stdout] 3b5fbbb7779a95527e36073758e82406633757df3f11fb344deaa20a0d70f278
