[INFO] cloning repository https://github.com/antoniofernandodj/rs-chickie [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/antoniofernandodj/rs-chickie" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantoniofernandodj%2Frs-chickie", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantoniofernandodj%2Frs-chickie'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5f8edca925a303af57ef7d927b7a4aa6b7f9144f [INFO] checking antoniofernandodj/rs-chickie/5f8edca925a303af57ef7d927b7a4aa6b7f9144f against master#bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3 for pr-149328 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantoniofernandodj%2Frs-chickie" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/antoniofernandodj/rs-chickie [INFO] finished tweaking git repo https://github.com/antoniofernandodj/rs-chickie [INFO] tweaked toml for git repo https://github.com/antoniofernandodj/rs-chickie written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/antoniofernandodj/rs-chickie on toolchain bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/antoniofernandodj/rs-chickie already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c1e6c870c1da58ba04aa942e5c2fc6d866376b341a96676f74a5b7fb28d429d7 [INFO] running `Command { std: "docker" "start" "-a" "c1e6c870c1da58ba04aa942e5c2fc6d866376b341a96676f74a5b7fb28d429d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c1e6c870c1da58ba04aa942e5c2fc6d866376b341a96676f74a5b7fb28d429d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1e6c870c1da58ba04aa942e5c2fc6d866376b341a96676f74a5b7fb28d429d7", kill_on_drop: false }` [INFO] [stdout] c1e6c870c1da58ba04aa942e5c2fc6d866376b341a96676f74a5b7fb28d429d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdbe8e21bc139d63ff3d73a9f5a90ba47fec401a6db05bf55107ca332906caa4 [INFO] running `Command { std: "docker" "start" "-a" "fdbe8e21bc139d63ff3d73a9f5a90ba47fec401a6db05bf55107ca332906caa4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling zmij v1.0.19 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Compiling uuid v1.20.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking flume v0.11.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking sqlx-sqlite v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking chickie v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::models::ItemPedido` [INFO] [stdout] --> src/services/pedido_service.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Pedido, Produto, ItemPedido}; [INFO] [stdout] | ^^^^^^^^^^ no `ItemPedido` in `models` [INFO] [stdout] | [INFO] [stdout] note: struct `crate::models::pedido::ItemPedido` exists but is inaccessible [INFO] [stdout] --> src/models/pedido.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct ItemPedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::FromRow` [INFO] [stdout] --> src/models/endereco.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::FromRow; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CategoriasProdutos` [INFO] [stdout] --> src/models/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | CategoriasProdutos [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Usuarios` [INFO] [stdout] --> src/models/mod.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | pub use usuario::{Usuario, Usuarios}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lojas` [INFO] [stdout] --> src/models/mod.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | pub use loja::{Loja, Lojas}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pedidos` [INFO] [stdout] --> src/models/mod.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | pub use pedido::{Pedido, Pedidos, EstadoDePedido}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EnderecosLoja` [INFO] [stdout] --> src/models/mod.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub use endereco::{EnderecoLoja, EnderecosLoja}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entregadores` [INFO] [stdout] --> src/models/mod.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | pub use entregador::{Entregador, Entregadores}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Funcionarios` [INFO] [stdout] --> src/models/mod.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | pub use funcionario::{Funcionario, Funcionarios}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Produtos` [INFO] [stdout] --> src/models/mod.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | pub use produto::{Produto, Produtos}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EnderecoLoja` [INFO] [stdout] --> src/services/loja_service.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Loja, EnderecoLoja}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Produto` [INFO] [stdout] --> src/services/pedido_service.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Pedido, Produto, ItemPedido}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProdutoService` [INFO] [stdout] --> src/services/pedido_service.rs:3:50 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::services::{CupomService, LojaService, ProdutoService}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ingrediente` [INFO] [stdout] --> src/services/produto_service.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Produto, Adicional, Ingrediente, CategoriaProdutos}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `usuario_service::UsuarioService` [INFO] [stdout] --> src/services/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use usuario_service::UsuarioService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pedido_service::PedidoService` [INFO] [stdout] --> src/services/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use pedido_service::PedidoService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pagamento_service::PagamentoService` [INFO] [stdout] --> src/services/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use pagamento_service::PagamentoService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `avaliacao_service::AvaliacaoService` [INFO] [stdout] --> src/services/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use avaliacao_service::AvaliacaoService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entrega_service::EntregaService` [INFO] [stdout] --> src/services/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use entrega_service::EntregaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SqlitePool` and `sqlite::SqlitePoolOptions` [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::{SqlitePool, sqlite::SqlitePoolOptions}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AvaliacoesDeLoja` and `AvaliacoesDeProduto` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | AvaliacoesDeLoja, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | AvaliacaoDeLoja, [INFO] [stdout] 13 | AvaliacoesDeProduto, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::models::ItemPedido` [INFO] [stdout] --> src/services/pedido_service.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Pedido, Produto, ItemPedido}; [INFO] [stdout] | ^^^^^^^^^^ no `ItemPedido` in `models` [INFO] [stdout] | [INFO] [stdout] note: struct `crate::models::pedido::ItemPedido` exists but is inaccessible [INFO] [stdout] --> src/models/pedido.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct ItemPedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::FromRow` [INFO] [stdout] --> src/models/endereco.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sqlx::FromRow; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CategoriasProdutos` [INFO] [stdout] --> src/models/mod.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | CategoriasProdutos [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Usuarios` [INFO] [stdout] --> src/models/mod.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 32 | pub use usuario::{Usuario, Usuarios}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Lojas` [INFO] [stdout] --> src/models/mod.rs:33:22 [INFO] [stdout] | [INFO] [stdout] 33 | pub use loja::{Loja, Lojas}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Pedidos` [INFO] [stdout] --> src/models/mod.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | pub use pedido::{Pedido, Pedidos, EstadoDePedido}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EnderecosLoja` [INFO] [stdout] --> src/models/mod.rs:36:34 [INFO] [stdout] | [INFO] [stdout] 36 | pub use endereco::{EnderecoLoja, EnderecosLoja}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entregadores` [INFO] [stdout] --> src/models/mod.rs:37:34 [INFO] [stdout] | [INFO] [stdout] 37 | pub use entregador::{Entregador, Entregadores}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Funcionarios` [INFO] [stdout] --> src/models/mod.rs:38:36 [INFO] [stdout] | [INFO] [stdout] 38 | pub use funcionario::{Funcionario, Funcionarios}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Produtos` [INFO] [stdout] --> src/models/mod.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 39 | pub use produto::{Produto, Produtos}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EnderecoLoja` [INFO] [stdout] --> src/services/loja_service.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Loja, EnderecoLoja}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Produto` [INFO] [stdout] --> src/services/pedido_service.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Pedido, Produto, ItemPedido}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ProdutoService` [INFO] [stdout] --> src/services/pedido_service.rs:3:50 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::services::{CupomService, LojaService, ProdutoService}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ingrediente` [INFO] [stdout] --> src/services/produto_service.rs:1:41 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{Produto, Adicional, Ingrediente, CategoriaProdutos}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `usuario_service::UsuarioService` [INFO] [stdout] --> src/services/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use usuario_service::UsuarioService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pedido_service::PedidoService` [INFO] [stdout] --> src/services/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use pedido_service::PedidoService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pagamento_service::PagamentoService` [INFO] [stdout] --> src/services/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use pagamento_service::PagamentoService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `avaliacao_service::AvaliacaoService` [INFO] [stdout] --> src/services/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use avaliacao_service::AvaliacaoService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entrega_service::EntregaService` [INFO] [stdout] --> src/services/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use entrega_service::EntregaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SqlitePool` and `sqlite::SqlitePoolOptions` [INFO] [stdout] --> src/main.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use sqlx::{SqlitePool, sqlite::SqlitePoolOptions}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AvaliacoesDeLoja` and `AvaliacoesDeProduto` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | AvaliacoesDeLoja, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | AvaliacaoDeLoja, [INFO] [stdout] 13 | AvaliacoesDeProduto, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:650:29 [INFO] [stdout] | [INFO] [stdout] 650 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:654:10 [INFO] [stdout] | [INFO] [stdout] 650 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 651 | | "SELECT * FROM pedidos WHERE usuario_uuid = ?" [INFO] [stdout] 652 | | ) [INFO] [stdout] 653 | | .bind(usuario_uuid.to_string()) [INFO] [stdout] 654 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:660:29 [INFO] [stdout] | [INFO] [stdout] 660 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:664:10 [INFO] [stdout] | [INFO] [stdout] 660 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 661 | | "SELECT * FROM pedidos WHERE loja_uuid = ?" [INFO] [stdout] 662 | | ) [INFO] [stdout] 663 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 664 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:670:29 [INFO] [stdout] | [INFO] [stdout] 670 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:673:22 [INFO] [stdout] | [INFO] [stdout] 673 | .bind(status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:674:10 [INFO] [stdout] | [INFO] [stdout] 670 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 671 | | "SELECT * FROM pedidos WHERE status = ?" [INFO] [stdout] 672 | | ) [INFO] [stdout] 673 | | .bind(status.to_string()) [INFO] [stdout] 674 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:680:29 [INFO] [stdout] | [INFO] [stdout] 680 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:684:41 [INFO] [stdout] | [INFO] [stdout] 684 | .bind(EstadoDePedido::EmPreparo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:685:38 [INFO] [stdout] | [INFO] [stdout] 685 | .bind(EstadoDePedido::Criado.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:686:10 [INFO] [stdout] | [INFO] [stdout] 680 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 681 | | "SELECT * FROM pedidos WHERE loja_uuid = ? AND (status = ? OR status = ?)" [INFO] [stdout] 682 | | ) [INFO] [stdout] 683 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 684 | | .bind(EstadoDePedido::EmPreparo.to_string()) [INFO] [stdout] 685 | | .bind(EstadoDePedido::Criado.to_string()) [INFO] [stdout] 686 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> endereco::EnderecoLoja: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1004:29 [INFO] [stdout] | [INFO] [stdout] 1004 | sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `endereco::EnderecoLoja` [INFO] [stdout] --> src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, endereco::EnderecoLoja, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1008:10 [INFO] [stdout] | [INFO] [stdout] 1004 | / sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] 1005 | | "SELECT * FROM enderecos_loja WHERE loja_uuid = ?" [INFO] [stdout] 1006 | | ) [INFO] [stdout] 1007 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1008 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, endereco::EnderecoLoja, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ----------------------- doesn't satisfy `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:650:29 [INFO] [stdout] | [INFO] [stdout] 650 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:654:10 [INFO] [stdout] | [INFO] [stdout] 650 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 651 | | "SELECT * FROM pedidos WHERE usuario_uuid = ?" [INFO] [stdout] 652 | | ) [INFO] [stdout] 653 | | .bind(usuario_uuid.to_string()) [INFO] [stdout] 654 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:660:29 [INFO] [stdout] | [INFO] [stdout] 660 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:664:10 [INFO] [stdout] | [INFO] [stdout] 660 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 661 | | "SELECT * FROM pedidos WHERE loja_uuid = ?" [INFO] [stdout] 662 | | ) [INFO] [stdout] 663 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 664 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:670:29 [INFO] [stdout] | [INFO] [stdout] 670 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1464:29 [INFO] [stdout] | [INFO] [stdout] 1464 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:673:22 [INFO] [stdout] | [INFO] [stdout] 673 | .bind(status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1468:10 [INFO] [stdout] | [INFO] [stdout] 1464 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1465 | | "SELECT * FROM avaliacoes_produto WHERE produto_uuid = ?" [INFO] [stdout] 1466 | | ) [INFO] [stdout] 1467 | | .bind(produto_uuid.to_string()) [INFO] [stdout] 1468 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1474:29 [INFO] [stdout] | [INFO] [stdout] 1474 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:674:10 [INFO] [stdout] | [INFO] [stdout] 670 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 671 | | "SELECT * FROM pedidos WHERE status = ?" [INFO] [stdout] 672 | | ) [INFO] [stdout] 673 | | .bind(status.to_string()) [INFO] [stdout] 674 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:680:29 [INFO] [stdout] | [INFO] [stdout] 680 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1478:10 [INFO] [stdout] | [INFO] [stdout] 1474 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1475 | | "SELECT * FROM avaliacoes_produto WHERE usuario_uuid = ?" [INFO] [stdout] 1476 | | ) [INFO] [stdout] 1477 | | .bind(usuario_uuid.to_string()) [INFO] [stdout] 1478 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1484:29 [INFO] [stdout] | [INFO] [stdout] 1484 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:684:41 [INFO] [stdout] | [INFO] [stdout] 684 | .bind(EstadoDePedido::EmPreparo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:685:38 [INFO] [stdout] | [INFO] [stdout] 685 | .bind(EstadoDePedido::Criado.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1488:10 [INFO] [stdout] | [INFO] [stdout] 1484 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1485 | | "SELECT * FROM avaliacoes_produto WHERE pedido_uuid = ?" [INFO] [stdout] 1486 | | ) [INFO] [stdout] 1487 | | .bind(pedido_uuid.to_string()) [INFO] [stdout] 1488 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1592:29 [INFO] [stdout] | [INFO] [stdout] 1592 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:686:10 [INFO] [stdout] | [INFO] [stdout] 680 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 681 | | "SELECT * FROM pedidos WHERE loja_uuid = ? AND (status = ? OR status = ?)" [INFO] [stdout] 682 | | ) [INFO] [stdout] 683 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 684 | | .bind(EstadoDePedido::EmPreparo.to_string()) [INFO] [stdout] 685 | | .bind(EstadoDePedido::Criado.to_string()) [INFO] [stdout] 686 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1596:10 [INFO] [stdout] | [INFO] [stdout] 1592 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1593 | | "SELECT * FROM cupons WHERE UPPER(codigo) = UPPER(?)" [INFO] [stdout] 1594 | | ) [INFO] [stdout] 1595 | | .bind(codigo) [INFO] [stdout] 1596 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1602:29 [INFO] [stdout] | [INFO] [stdout] 1602 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1606:10 [INFO] [stdout] | [INFO] [stdout] 1602 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1603 | | "SELECT * FROM cupons WHERE loja_uuid = ?" [INFO] [stdout] 1604 | | ) [INFO] [stdout] 1605 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1606 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> endereco::EnderecoLoja: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1004:29 [INFO] [stdout] | [INFO] [stdout] 1004 | sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `endereco::EnderecoLoja` [INFO] [stdout] --> src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1612:29 [INFO] [stdout] | [INFO] [stdout] 1612 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, endereco::EnderecoLoja, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1008:10 [INFO] [stdout] | [INFO] [stdout] 1004 | / sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] 1005 | | "SELECT * FROM enderecos_loja WHERE loja_uuid = ?" [INFO] [stdout] 1006 | | ) [INFO] [stdout] 1007 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1008 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, endereco::EnderecoLoja, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ----------------------- doesn't satisfy `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1616:34 [INFO] [stdout] | [INFO] [stdout] 1616 | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1617:10 [INFO] [stdout] | [INFO] [stdout] 1612 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1613 | | "SELECT * FROM cupons WHERE loja_uuid = ? AND status = ?" [INFO] [stdout] 1614 | | ) [INFO] [stdout] 1615 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1616 | | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] 1617 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1719:29 [INFO] [stdout] | [INFO] [stdout] 1719 | sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1723:10 [INFO] [stdout] | [INFO] [stdout] 1719 | / sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] 1720 | | "SELECT * FROM uso_cupons WHERE usuario_uuid = ?" [INFO] [stdout] 1721 | | ) [INFO] [stdout] 1722 | | .bind(usuario_uuid.to_string()) [INFO] [stdout] 1723 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1729:29 [INFO] [stdout] | [INFO] [stdout] 1729 | sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1733:10 [INFO] [stdout] | [INFO] [stdout] 1729 | / sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] 1730 | | "SELECT * FROM uso_cupons WHERE cupom_uuid = ?" [INFO] [stdout] 1731 | | ) [INFO] [stdout] 1732 | | .bind(cupom_uuid.to_string()) [INFO] [stdout] 1733 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1835:29 [INFO] [stdout] | [INFO] [stdout] 1835 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1464:29 [INFO] [stdout] | [INFO] [stdout] 1464 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1839:10 [INFO] [stdout] | [INFO] [stdout] 1835 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1836 | | "SELECT * FROM promocoes WHERE loja_uuid = ?" [INFO] [stdout] 1837 | | ) [INFO] [stdout] 1838 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1839 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1845:29 [INFO] [stdout] | [INFO] [stdout] 1845 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1468:10 [INFO] [stdout] | [INFO] [stdout] 1464 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1465 | | "SELECT * FROM avaliacoes_produto WHERE produto_uuid = ?" [INFO] [stdout] 1466 | | ) [INFO] [stdout] 1467 | | .bind(produto_uuid.to_string()) [INFO] [stdout] 1468 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1474:29 [INFO] [stdout] | [INFO] [stdout] 1474 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1849:34 [INFO] [stdout] | [INFO] [stdout] 1849 | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1478:10 [INFO] [stdout] | [INFO] [stdout] 1474 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1475 | | "SELECT * FROM avaliacoes_produto WHERE usuario_uuid = ?" [INFO] [stdout] 1476 | | ) [INFO] [stdout] 1477 | | .bind(usuario_uuid.to_string()) [INFO] [stdout] 1478 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1484:29 [INFO] [stdout] | [INFO] [stdout] 1484 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1850:10 [INFO] [stdout] | [INFO] [stdout] 1845 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1846 | | "SELECT * FROM promocoes WHERE loja_uuid = ? AND status = ?" [INFO] [stdout] 1847 | | ) [INFO] [stdout] 1848 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1849 | | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] 1850 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1856:29 [INFO] [stdout] | [INFO] [stdout] 1856 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1488:10 [INFO] [stdout] | [INFO] [stdout] 1484 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1485 | | "SELECT * FROM avaliacoes_produto WHERE pedido_uuid = ?" [INFO] [stdout] 1486 | | ) [INFO] [stdout] 1487 | | .bind(pedido_uuid.to_string()) [INFO] [stdout] 1488 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1860:34 [INFO] [stdout] | [INFO] [stdout] 1860 | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1592:29 [INFO] [stdout] | [INFO] [stdout] 1592 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1861:10 [INFO] [stdout] | [INFO] [stdout] 1856 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1857 | | "SELECT * FROM promocoes WHERE loja_uuid = ? AND status = ? ORDER BY prioridade DESC" [INFO] [stdout] 1858 | | ) [INFO] [stdout] 1859 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1860 | | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] 1861 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1596:10 [INFO] [stdout] | [INFO] [stdout] 1592 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1593 | | "SELECT * FROM cupons WHERE UPPER(codigo) = UPPER(?)" [INFO] [stdout] 1594 | | ) [INFO] [stdout] 1595 | | .bind(codigo) [INFO] [stdout] 1596 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1602:29 [INFO] [stdout] | [INFO] [stdout] 1602 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1606:10 [INFO] [stdout] | [INFO] [stdout] 1602 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1603 | | "SELECT * FROM cupons WHERE loja_uuid = ?" [INFO] [stdout] 1604 | | ) [INFO] [stdout] 1605 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1606 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1612:29 [INFO] [stdout] | [INFO] [stdout] 1612 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1616:34 [INFO] [stdout] | [INFO] [stdout] 1616 | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1617:10 [INFO] [stdout] | [INFO] [stdout] 1612 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1613 | | "SELECT * FROM cupons WHERE loja_uuid = ? AND status = ?" [INFO] [stdout] 1614 | | ) [INFO] [stdout] 1615 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1616 | | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] 1617 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1719:29 [INFO] [stdout] | [INFO] [stdout] 1719 | sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1723:10 [INFO] [stdout] | [INFO] [stdout] 1719 | / sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] 1720 | | "SELECT * FROM uso_cupons WHERE usuario_uuid = ?" [INFO] [stdout] 1721 | | ) [INFO] [stdout] 1722 | | .bind(usuario_uuid.to_string()) [INFO] [stdout] 1723 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1729:29 [INFO] [stdout] | [INFO] [stdout] 1729 | sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/loja.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | horarios_de_funcionamento, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::string::String` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1733:10 [INFO] [stdout] | [INFO] [stdout] 1729 | / sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] 1730 | | "SELECT * FROM uso_cupons WHERE cupom_uuid = ?" [INFO] [stdout] 1731 | | ) [INFO] [stdout] 1732 | | .bind(cupom_uuid.to_string()) [INFO] [stdout] 1733 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1835:29 [INFO] [stdout] | [INFO] [stdout] 1835 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1839:10 [INFO] [stdout] | [INFO] [stdout] 1835 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1836 | | "SELECT * FROM promocoes WHERE loja_uuid = ?" [INFO] [stdout] 1837 | | ) [INFO] [stdout] 1838 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1839 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1845:29 [INFO] [stdout] | [INFO] [stdout] 1845 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1849:34 [INFO] [stdout] | [INFO] [stdout] 1849 | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1850:10 [INFO] [stdout] | [INFO] [stdout] 1845 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1846 | | "SELECT * FROM promocoes WHERE loja_uuid = ? AND status = ?" [INFO] [stdout] 1847 | | ) [INFO] [stdout] 1848 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1849 | | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] 1850 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1856:29 [INFO] [stdout] | [INFO] [stdout] 1856 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1860:34 [INFO] [stdout] | [INFO] [stdout] 1860 | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1861:10 [INFO] [stdout] | [INFO] [stdout] 1856 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1857 | | "SELECT * FROM promocoes WHERE loja_uuid = ? AND status = ? ORDER BY prioridade DESC" [INFO] [stdout] 1858 | | ) [INFO] [stdout] 1859 | | .bind(loja_uuid.to_string()) [INFO] [stdout] 1860 | | .bind(StatusCupom::Ativo.to_string()) [INFO] [stdout] 1861 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/loja.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | horarios_de_funcionamento, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `String`, found `Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::string::String` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `descricao` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | .bind(&item.descricao) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logo_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | .bind(&item.logo_url) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `banner_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | .bind(&item.banner_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_abertura` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | .bind(&item.horario_abertura) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_fechamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | .bind(&item.horario_fechamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `dias_funcionamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | .bind(&item.dias_funcionamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:218:20 [INFO] [stdout] | [INFO] [stdout] 218 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo_pedido` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:219:20 [INFO] [stdout] | [INFO] [stdout] 219 | .bind(item.valor_minimo_pedido) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `raio_entrega_km` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | .bind(item.raio_entrega_km) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:222:20 [INFO] [stdout] | [INFO] [stdout] 222 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `descricao` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | .bind(&item.descricao) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logo_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:253:21 [INFO] [stdout] | [INFO] [stdout] 253 | .bind(&item.logo_url) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `banner_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | .bind(&item.banner_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_abertura` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:255:21 [INFO] [stdout] | [INFO] [stdout] 255 | .bind(&item.horario_abertura) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_fechamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:256:21 [INFO] [stdout] | [INFO] [stdout] 256 | .bind(&item.horario_fechamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `dias_funcionamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:257:21 [INFO] [stdout] | [INFO] [stdout] 257 | .bind(&item.dias_funcionamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:258:20 [INFO] [stdout] | [INFO] [stdout] 258 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:259:20 [INFO] [stdout] | [INFO] [stdout] 259 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo_pedido` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | .bind(item.valor_minimo_pedido) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `raio_entrega_km` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:261:20 [INFO] [stdout] | [INFO] [stdout] 261 | .bind(item.raio_entrega_km) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:262:20 [INFO] [stdout] | [INFO] [stdout] 262 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `cliente::Cliente` [INFO] [stdout] --> src/repositories_async.rs:337:20 [INFO] [stdout] | [INFO] [stdout] 337 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `imagem_url` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:461:21 [INFO] [stdout] | [INFO] [stdout] 461 | .bind(&item.imagem_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:463:20 [INFO] [stdout] | [INFO] [stdout] 463 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `destaque` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:464:20 [INFO] [stdout] | [INFO] [stdout] 464 | .bind(item.destaque) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:465:20 [INFO] [stdout] | [INFO] [stdout] 465 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:466:20 [INFO] [stdout] | [INFO] [stdout] 466 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `imagem_url` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:495:21 [INFO] [stdout] | [INFO] [stdout] 495 | .bind(&item.imagem_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:497:20 [INFO] [stdout] | [INFO] [stdout] 497 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `destaque` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:498:20 [INFO] [stdout] | [INFO] [stdout] 498 | .bind(item.destaque) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:499:20 [INFO] [stdout] | [INFO] [stdout] 499 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ordem` on type `categoria::CategoriaProdutos` [INFO] [stdout] --> src/repositories_async.rs:577:20 [INFO] [stdout] | [INFO] [stdout] 577 | .bind(item.ordem) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `categoria::CategoriaProdutos` [INFO] [stdout] --> src/repositories_async.rs:578:20 [INFO] [stdout] | [INFO] [stdout] 578 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ordem` on type `categoria::CategoriaProdutos` [INFO] [stdout] --> src/repositories_async.rs:604:20 [INFO] [stdout] | [INFO] [stdout] 604 | .bind(item.ordem) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `descricao` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:208:21 [INFO] [stdout] | [INFO] [stdout] 208 | .bind(&item.descricao) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logo_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | .bind(&item.logo_url) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `banner_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | .bind(&item.banner_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_abertura` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | .bind(&item.horario_abertura) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_fechamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | .bind(&item.horario_fechamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `dias_funcionamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:216:21 [INFO] [stdout] | [INFO] [stdout] 216 | .bind(&item.dias_funcionamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:217:20 [INFO] [stdout] | [INFO] [stdout] 217 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:218:20 [INFO] [stdout] | [INFO] [stdout] 218 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo_pedido` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:219:20 [INFO] [stdout] | [INFO] [stdout] 219 | .bind(item.valor_minimo_pedido) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `raio_entrega_km` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:220:20 [INFO] [stdout] | [INFO] [stdout] 220 | .bind(item.raio_entrega_km) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:221:20 [INFO] [stdout] | [INFO] [stdout] 221 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:222:20 [INFO] [stdout] | [INFO] [stdout] 222 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:703:27 [INFO] [stdout] | [INFO] [stdout] 703 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `total` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:704:20 [INFO] [stdout] | [INFO] [stdout] 704 | .bind(item.total) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `subtotal` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:705:20 [INFO] [stdout] | [INFO] [stdout] 705 | .bind(item.subtotal) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:706:20 [INFO] [stdout] | [INFO] [stdout] 706 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `descricao` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | .bind(&item.descricao) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `desconto` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:707:20 [INFO] [stdout] | [INFO] [stdout] 707 | .bind(item.desconto) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `forma_pagamento` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:708:21 [INFO] [stdout] | [INFO] [stdout] 708 | .bind(&item.forma_pagamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `observacoes` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:709:21 [INFO] [stdout] | [INFO] [stdout] 709 | .bind(&item.observacoes) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logo_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:253:21 [INFO] [stdout] | [INFO] [stdout] 253 | .bind(&item.logo_url) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `banner_url` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:254:21 [INFO] [stdout] | [INFO] [stdout] 254 | .bind(&item.banner_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_abertura` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:255:21 [INFO] [stdout] | [INFO] [stdout] 255 | .bind(&item.horario_abertura) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `horario_fechamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:256:21 [INFO] [stdout] | [INFO] [stdout] 256 | .bind(&item.horario_fechamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `dias_funcionamento` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:257:21 [INFO] [stdout] | [INFO] [stdout] 257 | .bind(&item.dias_funcionamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:258:20 [INFO] [stdout] | [INFO] [stdout] 258 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_estimado_min` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:710:20 [INFO] [stdout] | [INFO] [stdout] 710 | .bind(item.tempo_estimado_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:711:20 [INFO] [stdout] | [INFO] [stdout] 711 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:712:20 [INFO] [stdout] | [INFO] [stdout] 712 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:259:20 [INFO] [stdout] | [INFO] [stdout] 259 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo_pedido` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | .bind(item.valor_minimo_pedido) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `raio_entrega_km` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:261:20 [INFO] [stdout] | [INFO] [stdout] 261 | .bind(item.raio_entrega_km) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `loja::Loja` [INFO] [stdout] --> src/repositories_async.rs:262:20 [INFO] [stdout] | [INFO] [stdout] 262 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `username`, `email`, `celular`, `senha_hash` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:721:29 [INFO] [stdout] | [INFO] [stdout] 721 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `cliente::Cliente` [INFO] [stdout] --> src/repositories_async.rs:337:20 [INFO] [stdout] | [INFO] [stdout] 337 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:725:10 [INFO] [stdout] | [INFO] [stdout] 721 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 722 | | "SELECT * FROM pedidos WHERE uuid = ?" [INFO] [stdout] 723 | | ) [INFO] [stdout] 724 | | .bind(id.to_string()) [INFO] [stdout] 725 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:736:27 [INFO] [stdout] | [INFO] [stdout] 736 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `total` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:737:20 [INFO] [stdout] | [INFO] [stdout] 737 | .bind(item.total) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `subtotal` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:738:20 [INFO] [stdout] | [INFO] [stdout] 738 | .bind(item.subtotal) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:739:20 [INFO] [stdout] | [INFO] [stdout] 739 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `desconto` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:740:20 [INFO] [stdout] | [INFO] [stdout] 740 | .bind(item.desconto) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `forma_pagamento` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:741:21 [INFO] [stdout] | [INFO] [stdout] 741 | .bind(&item.forma_pagamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `observacoes` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:742:21 [INFO] [stdout] | [INFO] [stdout] 742 | .bind(&item.observacoes) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_estimado_min` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:743:20 [INFO] [stdout] | [INFO] [stdout] 743 | .bind(item.tempo_estimado_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:744:20 [INFO] [stdout] | [INFO] [stdout] 744 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `imagem_url` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:461:21 [INFO] [stdout] | [INFO] [stdout] 461 | .bind(&item.imagem_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:463:20 [INFO] [stdout] | [INFO] [stdout] 463 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `destaque` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:464:20 [INFO] [stdout] | [INFO] [stdout] 464 | .bind(item.destaque) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:465:20 [INFO] [stdout] | [INFO] [stdout] 465 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:466:20 [INFO] [stdout] | [INFO] [stdout] 466 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `imagem_url` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:495:21 [INFO] [stdout] | [INFO] [stdout] 495 | .bind(&item.imagem_url) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_preparo_min` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:497:20 [INFO] [stdout] | [INFO] [stdout] 497 | .bind(item.tempo_preparo_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `destaque` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:498:20 [INFO] [stdout] | [INFO] [stdout] 498 | .bind(item.destaque) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `produto::Produto` [INFO] [stdout] --> src/repositories_async.rs:499:20 [INFO] [stdout] | [INFO] [stdout] 499 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco`, `categoria_uuid`, `loja_uuid` ... and 2 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:772:29 [INFO] [stdout] | [INFO] [stdout] 772 | sqlx::query_as::<_, Pedido>("SELECT * FROM pedidos") [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ordem` on type `categoria::CategoriaProdutos` [INFO] [stdout] --> src/repositories_async.rs:577:20 [INFO] [stdout] | [INFO] [stdout] 577 | .bind(item.ordem) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `categoria::CategoriaProdutos` [INFO] [stdout] --> src/repositories_async.rs:578:20 [INFO] [stdout] | [INFO] [stdout] 578 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:773:14 [INFO] [stdout] | [INFO] [stdout] 772 | / sqlx::query_as::<_, Pedido>("SELECT * FROM pedidos") [INFO] [stdout] 773 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `adicional::Adicional` [INFO] [stdout] --> src/repositories_async.rs:823:20 [INFO] [stdout] | [INFO] [stdout] 823 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `nome`, `loja_uuid`, `disponivel`, `descricao`, `preco` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ordem` on type `categoria::CategoriaProdutos` [INFO] [stdout] --> src/repositories_async.rs:604:20 [INFO] [stdout] | [INFO] [stdout] 604 | .bind(item.ordem) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `loja_uuid`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `unidade_medida` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:926:21 [INFO] [stdout] | [INFO] [stdout] 926 | .bind(&item.unidade_medida) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `preco_unitario` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:928:20 [INFO] [stdout] | [INFO] [stdout] 928 | .bind(item.preco_unitario) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:929:20 [INFO] [stdout] | [INFO] [stdout] 929 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:930:20 [INFO] [stdout] | [INFO] [stdout] 930 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `unidade_medida` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:955:21 [INFO] [stdout] | [INFO] [stdout] 955 | .bind(&item.unidade_medida) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `preco_unitario` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:957:20 [INFO] [stdout] | [INFO] [stdout] 957 | .bind(item.preco_unitario) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:958:20 [INFO] [stdout] | [INFO] [stdout] 958 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:703:27 [INFO] [stdout] | [INFO] [stdout] 703 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `total` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:704:20 [INFO] [stdout] | [INFO] [stdout] 704 | .bind(item.total) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `subtotal` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:705:20 [INFO] [stdout] | [INFO] [stdout] 705 | .bind(item.subtotal) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:706:20 [INFO] [stdout] | [INFO] [stdout] 706 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `desconto` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:707:20 [INFO] [stdout] | [INFO] [stdout] 707 | .bind(item.desconto) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `forma_pagamento` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:708:21 [INFO] [stdout] | [INFO] [stdout] 708 | .bind(&item.forma_pagamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `observacoes` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:709:21 [INFO] [stdout] | [INFO] [stdout] 709 | .bind(&item.observacoes) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_estimado_min` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:710:20 [INFO] [stdout] | [INFO] [stdout] 710 | .bind(item.tempo_estimado_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:711:20 [INFO] [stdout] | [INFO] [stdout] 711 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:712:20 [INFO] [stdout] | [INFO] [stdout] 712 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:721:29 [INFO] [stdout] | [INFO] [stdout] 721 | sqlx::query_as::<_, Pedido>( [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cep` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1024:21 [INFO] [stdout] | [INFO] [stdout] 1024 | .bind(&item.cep) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1024 | .bind(&item.endereco.cep) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logradouro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1025:21 [INFO] [stdout] | [INFO] [stdout] 1025 | .bind(&item.logradouro) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1025 | .bind(&item.endereco.logradouro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `numero` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1026:21 [INFO] [stdout] | [INFO] [stdout] 1026 | .bind(&item.numero) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1026 | .bind(&item.endereco.numero) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `complemento` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1027:21 [INFO] [stdout] | [INFO] [stdout] 1027 | .bind(&item.complemento) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1027 | .bind(&item.endereco.complemento) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `bairro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1028:21 [INFO] [stdout] | [INFO] [stdout] 1028 | .bind(&item.bairro) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1028 | .bind(&item.endereco.bairro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cidade` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1029:21 [INFO] [stdout] | [INFO] [stdout] 1029 | .bind(&item.cidade) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1029 | .bind(&item.endereco.cidade) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `estado` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1030:21 [INFO] [stdout] | [INFO] [stdout] 1030 | .bind(&item.estado) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `latitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1031:20 [INFO] [stdout] | [INFO] [stdout] 1031 | .bind(item.latitude) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `longitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1032:20 [INFO] [stdout] | [INFO] [stdout] 1032 | .bind(item.longitude) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> endereco::EnderecoLoja: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1041:29 [INFO] [stdout] | [INFO] [stdout] 1041 | sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `endereco::EnderecoLoja` [INFO] [stdout] --> src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:725:10 [INFO] [stdout] | [INFO] [stdout] 721 | / sqlx::query_as::<_, Pedido>( [INFO] [stdout] 722 | | "SELECT * FROM pedidos WHERE uuid = ?" [INFO] [stdout] 723 | | ) [INFO] [stdout] 724 | | .bind(id.to_string()) [INFO] [stdout] 725 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, endereco::EnderecoLoja, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1045:10 [INFO] [stdout] | [INFO] [stdout] 1041 | / sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] 1042 | | "SELECT * FROM enderecos_loja WHERE uuid = ?" [INFO] [stdout] 1043 | | ) [INFO] [stdout] 1044 | | .bind(id.to_string()) [INFO] [stdout] 1045 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, endereco::EnderecoLoja, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ----------------------- doesn't satisfy `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cep` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1057:21 [INFO] [stdout] | [INFO] [stdout] 1057 | .bind(&item.cep) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1057 | .bind(&item.endereco.cep) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logradouro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1058:21 [INFO] [stdout] | [INFO] [stdout] 1058 | .bind(&item.logradouro) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1058 | .bind(&item.endereco.logradouro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `numero` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1059:21 [INFO] [stdout] | [INFO] [stdout] 1059 | .bind(&item.numero) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1059 | .bind(&item.endereco.numero) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `complemento` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1060:21 [INFO] [stdout] | [INFO] [stdout] 1060 | .bind(&item.complemento) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1060 | .bind(&item.endereco.complemento) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `pedido::EstadoDePedido` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:736:27 [INFO] [stdout] | [INFO] [stdout] 736 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `pedido::EstadoDePedido` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `to_string` not found for this enum because it doesn't satisfy `pedido::EstadoDePedido: ToString` or `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::EstadoDePedido: std::fmt::Display` [INFO] [stdout] which is required by `pedido::EstadoDePedido: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `bairro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1061:21 [INFO] [stdout] | [INFO] [stdout] 1061 | .bind(&item.bairro) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1061 | .bind(&item.endereco.bairro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `total` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:737:20 [INFO] [stdout] | [INFO] [stdout] 737 | .bind(item.total) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cidade` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1062:21 [INFO] [stdout] | [INFO] [stdout] 1062 | .bind(&item.cidade) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1062 | .bind(&item.endereco.cidade) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `subtotal` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:738:20 [INFO] [stdout] | [INFO] [stdout] 738 | .bind(item.subtotal) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `estado` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1063:21 [INFO] [stdout] | [INFO] [stdout] 1063 | .bind(&item.estado) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `taxa_entrega` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:739:20 [INFO] [stdout] | [INFO] [stdout] 739 | .bind(item.taxa_entrega) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `latitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1064:20 [INFO] [stdout] | [INFO] [stdout] 1064 | .bind(item.latitude) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `desconto` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:740:20 [INFO] [stdout] | [INFO] [stdout] 740 | .bind(item.desconto) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `longitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1065:20 [INFO] [stdout] | [INFO] [stdout] 1065 | .bind(item.longitude) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `forma_pagamento` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:741:21 [INFO] [stdout] | [INFO] [stdout] 741 | .bind(&item.forma_pagamento) [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `observacoes` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:742:21 [INFO] [stdout] | [INFO] [stdout] 742 | .bind(&item.observacoes) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `tempo_estimado_min` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:743:20 [INFO] [stdout] | [INFO] [stdout] 743 | .bind(item.tempo_estimado_min) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `pedido::Pedido` [INFO] [stdout] --> src/repositories_async.rs:744:20 [INFO] [stdout] | [INFO] [stdout] 744 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> pedido::Pedido: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:772:29 [INFO] [stdout] | [INFO] [stdout] 772 | sqlx::query_as::<_, Pedido>("SELECT * FROM pedidos") [INFO] [stdout] | ^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `pedido::Pedido` [INFO] [stdout] --> src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> endereco::EnderecoLoja: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1093:29 [INFO] [stdout] | [INFO] [stdout] 1093 | sqlx::query_as::<_, EnderecoLoja>("SELECT * FROM enderecos_loja") [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `endereco::EnderecoLoja` [INFO] [stdout] --> src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, endereco::EnderecoLoja, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1094:14 [INFO] [stdout] | [INFO] [stdout] 1093 | / sqlx::query_as::<_, EnderecoLoja>("SELECT * FROM enderecos_loja") [INFO] [stdout] 1094 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, endereco::EnderecoLoja, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ----------------------- doesn't satisfy `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `placa` on type `entregador::Entregador` [INFO] [stdout] --> src/repositories_async.rs:1153:21 [INFO] [stdout] | [INFO] [stdout] 1153 | .bind(&item.placa) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `celular`, `veiculo`, `placa_veiculo`, `loja_uuid` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, pedido::Pedido, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:773:14 [INFO] [stdout] | [INFO] [stdout] 772 | / sqlx::query_as::<_, Pedido>("SELECT * FROM pedidos") [INFO] [stdout] 773 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, pedido::Pedido, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:115:1 [INFO] [stdout] | [INFO] [stdout] 115 | pub struct Pedido { [INFO] [stdout] | ----------------- doesn't satisfy `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `pedido::Pedido: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `entregador::Entregador` [INFO] [stdout] --> src/repositories_async.rs:1155:20 [INFO] [stdout] | [INFO] [stdout] 1155 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `celular`, `veiculo`, `placa_veiculo`, `loja_uuid` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `adicional::Adicional` [INFO] [stdout] --> src/repositories_async.rs:823:20 [INFO] [stdout] | [INFO] [stdout] 823 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `nome`, `loja_uuid`, `disponivel`, `descricao`, `preco` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `placa` on type `entregador::Entregador` [INFO] [stdout] --> src/repositories_async.rs:1182:21 [INFO] [stdout] | [INFO] [stdout] 1182 | .bind(&item.placa) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `celular`, `veiculo`, `placa_veiculo`, `loja_uuid` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `unidade_medida` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:926:21 [INFO] [stdout] | [INFO] [stdout] 926 | .bind(&item.unidade_medida) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `salario` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1272:20 [INFO] [stdout] | [INFO] [stdout] 1272 | .bind(item.salario) [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_admissao` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1273:20 [INFO] [stdout] | [INFO] [stdout] 1273 | .bind(item.data_admissao) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `preco_unitario` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:928:20 [INFO] [stdout] | [INFO] [stdout] 928 | .bind(item.preco_unitario) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1274:20 [INFO] [stdout] | [INFO] [stdout] 1274 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:929:20 [INFO] [stdout] | [INFO] [stdout] 929 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:930:20 [INFO] [stdout] | [INFO] [stdout] 930 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `salario` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1301:20 [INFO] [stdout] | [INFO] [stdout] 1301 | .bind(item.salario) [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_admissao` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1302:20 [INFO] [stdout] | [INFO] [stdout] 1302 | .bind(item.data_admissao) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `unidade_medida` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:955:21 [INFO] [stdout] | [INFO] [stdout] 955 | .bind(&item.unidade_medida) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `preco_unitario` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:957:20 [INFO] [stdout] | [INFO] [stdout] 957 | .bind(item.preco_unitario) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `atualizado_em` on type `ingrediente::Ingrediente` [INFO] [stdout] --> src/repositories_async.rs:958:20 [INFO] [stdout] | [INFO] [stdout] 958 | .bind(item.atualizado_em) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `descricao`, `preco_base`, `loja_uuid`, `quantidade`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cep` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1024:21 [INFO] [stdout] | [INFO] [stdout] 1024 | .bind(&item.cep) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1024 | .bind(&item.endereco.cep) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logradouro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1025:21 [INFO] [stdout] | [INFO] [stdout] 1025 | .bind(&item.logradouro) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1025 | .bind(&item.endereco.logradouro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `numero` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1026:21 [INFO] [stdout] | [INFO] [stdout] 1026 | .bind(&item.numero) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1026 | .bind(&item.endereco.numero) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `complemento` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1027:21 [INFO] [stdout] | [INFO] [stdout] 1027 | .bind(&item.complemento) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1027 | .bind(&item.endereco.complemento) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `bairro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1028:21 [INFO] [stdout] | [INFO] [stdout] 1028 | .bind(&item.bairro) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1028 | .bind(&item.endereco.bairro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cidade` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1029:21 [INFO] [stdout] | [INFO] [stdout] 1029 | .bind(&item.cidade) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1029 | .bind(&item.endereco.cidade) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `estado` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1030:21 [INFO] [stdout] | [INFO] [stdout] 1030 | .bind(&item.estado) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `latitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1031:20 [INFO] [stdout] | [INFO] [stdout] 1031 | .bind(item.latitude) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `longitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1032:20 [INFO] [stdout] | [INFO] [stdout] 1032 | .bind(item.longitude) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/repositories_async.rs:1391:21 [INFO] [stdout] | [INFO] [stdout] 1391 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/repositories_async.rs:1392:20 [INFO] [stdout] | [INFO] [stdout] 1392 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> endereco::EnderecoLoja: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1041:29 [INFO] [stdout] | [INFO] [stdout] 1041 | sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `endereco::EnderecoLoja` [INFO] [stdout] --> src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/repositories_async.rs:1418:21 [INFO] [stdout] | [INFO] [stdout] 1418 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `pedido_uuid` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1516:20 [INFO] [stdout] | [INFO] [stdout] 1516 | .bind(item.pedido_uuid.to_string()) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1518:21 [INFO] [stdout] | [INFO] [stdout] 1518 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1519:20 [INFO] [stdout] | [INFO] [stdout] 1519 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, endereco::EnderecoLoja, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1045:10 [INFO] [stdout] | [INFO] [stdout] 1041 | / sqlx::query_as::<_, EnderecoLoja>( [INFO] [stdout] 1042 | | "SELECT * FROM enderecos_loja WHERE uuid = ?" [INFO] [stdout] 1043 | | ) [INFO] [stdout] 1044 | | .bind(id.to_string()) [INFO] [stdout] 1045 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, endereco::EnderecoLoja, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ----------------------- doesn't satisfy `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cep` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1057:21 [INFO] [stdout] | [INFO] [stdout] 1057 | .bind(&item.cep) [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1057 | .bind(&item.endereco.cep) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `logradouro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1058:21 [INFO] [stdout] | [INFO] [stdout] 1058 | .bind(&item.logradouro) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1058 | .bind(&item.endereco.logradouro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `numero` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1059:21 [INFO] [stdout] | [INFO] [stdout] 1059 | .bind(&item.numero) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1059 | .bind(&item.endereco.numero) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `complemento` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1060:21 [INFO] [stdout] | [INFO] [stdout] 1060 | .bind(&item.complemento) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1060 | .bind(&item.endereco.complemento) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1528:29 [INFO] [stdout] | [INFO] [stdout] 1528 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `bairro` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1061:21 [INFO] [stdout] | [INFO] [stdout] 1061 | .bind(&item.bairro) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1061 | .bind(&item.endereco.bairro) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `cidade` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1062:21 [INFO] [stdout] | [INFO] [stdout] 1062 | .bind(&item.cidade) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a field of the same name [INFO] [stdout] | [INFO] [stdout] 1062 | .bind(&item.endereco.cidade) [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `estado` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1063:21 [INFO] [stdout] | [INFO] [stdout] 1063 | .bind(&item.estado) [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `latitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1064:20 [INFO] [stdout] | [INFO] [stdout] 1064 | .bind(item.latitude) [INFO] [stdout] | ^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `longitude` on type `endereco::EnderecoLoja` [INFO] [stdout] --> src/repositories_async.rs:1065:20 [INFO] [stdout] | [INFO] [stdout] 1065 | .bind(item.longitude) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `endereco`, `loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> endereco::EnderecoLoja: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1093:29 [INFO] [stdout] | [INFO] [stdout] 1093 | sqlx::query_as::<_, EnderecoLoja>("SELECT * FROM enderecos_loja") [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `endereco::EnderecoLoja` [INFO] [stdout] --> src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1532:10 [INFO] [stdout] | [INFO] [stdout] 1528 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1529 | | "SELECT * FROM avaliacoes_produto WHERE uuid = ?" [INFO] [stdout] 1530 | | ) [INFO] [stdout] 1531 | | .bind(id.to_string()) [INFO] [stdout] 1532 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `pedido_uuid` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1544:20 [INFO] [stdout] | [INFO] [stdout] 1544 | .bind(item.pedido_uuid.to_string()) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1546:21 [INFO] [stdout] | [INFO] [stdout] 1546 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, endereco::EnderecoLoja, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1094:14 [INFO] [stdout] | [INFO] [stdout] 1093 | / sqlx::query_as::<_, EnderecoLoja>("SELECT * FROM enderecos_loja") [INFO] [stdout] 1094 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, endereco::EnderecoLoja, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/endereco.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct EnderecoLoja { [INFO] [stdout] | ----------------------- doesn't satisfy `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `endereco::EnderecoLoja: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1574:29 [INFO] [stdout] | [INFO] [stdout] 1574 | sqlx::query_as::<_, AvaliacaoDeProduto>("SELECT * FROM avaliacoes_produto") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `placa` on type `entregador::Entregador` [INFO] [stdout] --> src/repositories_async.rs:1153:21 [INFO] [stdout] | [INFO] [stdout] 1153 | .bind(&item.placa) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `celular`, `veiculo`, `placa_veiculo`, `loja_uuid` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `entregador::Entregador` [INFO] [stdout] --> src/repositories_async.rs:1155:20 [INFO] [stdout] | [INFO] [stdout] 1155 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `celular`, `veiculo`, `placa_veiculo`, `loja_uuid` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `placa` on type `entregador::Entregador` [INFO] [stdout] --> src/repositories_async.rs:1182:21 [INFO] [stdout] | [INFO] [stdout] 1182 | .bind(&item.placa) [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `nome`, `celular`, `veiculo`, `placa_veiculo`, `loja_uuid` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1575:14 [INFO] [stdout] | [INFO] [stdout] 1574 | / sqlx::query_as::<_, AvaliacaoDeProduto>("SELECT * FROM avaliacoes_produto") [INFO] [stdout] 1575 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `salario` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1272:20 [INFO] [stdout] | [INFO] [stdout] 1272 | .bind(item.salario) [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_admissao` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1273:20 [INFO] [stdout] | [INFO] [stdout] 1273 | .bind(item.data_admissao) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1274:20 [INFO] [stdout] | [INFO] [stdout] 1274 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1635:34 [INFO] [stdout] | [INFO] [stdout] 1635 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::TipoDesconto: ToString` or `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1636:20 [INFO] [stdout] | [INFO] [stdout] 1636 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1636 - .bind(item.valor_desconto) [INFO] [stdout] 1636 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1637:20 [INFO] [stdout] | [INFO] [stdout] 1637 | .bind(item.valor_minimo) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `salario` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1301:20 [INFO] [stdout] | [INFO] [stdout] 1301 | .bind(item.salario) [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_validade` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1638:20 [INFO] [stdout] | [INFO] [stdout] 1638 | .bind(item.data_validade) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_admissao` on type `funcionario::Funcionario` [INFO] [stdout] --> src/repositories_async.rs:1302:20 [INFO] [stdout] | [INFO] [stdout] 1302 | .bind(item.data_admissao) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `loja_uuid`, `cargo`, `nome`, `username`, `email` ... and 5 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `limite_uso` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1639:20 [INFO] [stdout] | [INFO] [stdout] 1639 | .bind(item.limite_uso) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1640:27 [INFO] [stdout] | [INFO] [stdout] 1640 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/repositories_async.rs:1391:21 [INFO] [stdout] | [INFO] [stdout] 1391 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/repositories_async.rs:1392:20 [INFO] [stdout] | [INFO] [stdout] 1392 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1650:29 [INFO] [stdout] | [INFO] [stdout] 1650 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/repositories_async.rs:1418:21 [INFO] [stdout] | [INFO] [stdout] 1418 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1654:10 [INFO] [stdout] | [INFO] [stdout] 1650 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1651 | | "SELECT * FROM cupons WHERE uuid = ?" [INFO] [stdout] 1652 | | ) [INFO] [stdout] 1653 | | .bind(id.to_string()) [INFO] [stdout] 1654 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `pedido_uuid` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1516:20 [INFO] [stdout] | [INFO] [stdout] 1516 | .bind(item.pedido_uuid.to_string()) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1518:21 [INFO] [stdout] | [INFO] [stdout] 1518 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1519:20 [INFO] [stdout] | [INFO] [stdout] 1519 | .bind(item.criado_em) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1528:29 [INFO] [stdout] | [INFO] [stdout] 1528 | sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1668:34 [INFO] [stdout] | [INFO] [stdout] 1668 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::TipoDesconto: ToString` or `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1669:20 [INFO] [stdout] | [INFO] [stdout] 1669 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1669 - .bind(item.valor_desconto) [INFO] [stdout] 1669 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1670:20 [INFO] [stdout] | [INFO] [stdout] 1670 | .bind(item.valor_minimo) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_validade` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1671:20 [INFO] [stdout] | [INFO] [stdout] 1671 | .bind(item.data_validade) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `limite_uso` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1672:20 [INFO] [stdout] | [INFO] [stdout] 1672 | .bind(item.limite_uso) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1532:10 [INFO] [stdout] | [INFO] [stdout] 1528 | / sqlx::query_as::<_, AvaliacaoDeProduto>( [INFO] [stdout] 1529 | | "SELECT * FROM avaliacoes_produto WHERE uuid = ?" [INFO] [stdout] 1530 | | ) [INFO] [stdout] 1531 | | .bind(id.to_string()) [INFO] [stdout] 1532 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `pedido_uuid` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1544:20 [INFO] [stdout] | [INFO] [stdout] 1544 | .bind(item.pedido_uuid.to_string()) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `comentario` on type `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/repositories_async.rs:1546:21 [INFO] [stdout] | [INFO] [stdout] 1546 | .bind(&item.comentario) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `produto_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1673:27 [INFO] [stdout] | [INFO] [stdout] 1673 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1574:29 [INFO] [stdout] | [INFO] [stdout] 1574 | sqlx::query_as::<_, AvaliacaoDeProduto>("SELECT * FROM avaliacoes_produto") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `avaliacao::AvaliacaoDeProduto` [INFO] [stdout] --> src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1701:29 [INFO] [stdout] | [INFO] [stdout] 1701 | sqlx::query_as::<_, Cupom>("SELECT * FROM cupons") [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1575:14 [INFO] [stdout] | [INFO] [stdout] 1574 | / sqlx::query_as::<_, AvaliacaoDeProduto>("SELECT * FROM avaliacoes_produto") [INFO] [stdout] 1575 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, avaliacao::AvaliacaoDeProduto, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/avaliacao.rs:33:1 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct AvaliacaoDeProduto { [INFO] [stdout] | ----------------------------- doesn't satisfy `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `avaliacao::AvaliacaoDeProduto: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1702:14 [INFO] [stdout] | [INFO] [stdout] 1701 | / sqlx::query_as::<_, Cupom>("SELECT * FROM cupons") [INFO] [stdout] 1702 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1772:29 [INFO] [stdout] | [INFO] [stdout] 1772 | sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1635:34 [INFO] [stdout] | [INFO] [stdout] 1635 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `TipoDesconto: ToString` or `TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1636:20 [INFO] [stdout] | [INFO] [stdout] 1636 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1636 - .bind(item.valor_desconto) [INFO] [stdout] 1636 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1637:20 [INFO] [stdout] | [INFO] [stdout] 1637 | .bind(item.valor_minimo) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_validade` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1638:20 [INFO] [stdout] | [INFO] [stdout] 1638 | .bind(item.data_validade) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `limite_uso` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1639:20 [INFO] [stdout] | [INFO] [stdout] 1639 | .bind(item.limite_uso) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1776:10 [INFO] [stdout] | [INFO] [stdout] 1772 | / sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] 1773 | | "SELECT * FROM uso_cupons WHERE uuid = ?" [INFO] [stdout] 1774 | | ) [INFO] [stdout] 1775 | | .bind(id.to_string()) [INFO] [stdout] 1776 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1640:27 [INFO] [stdout] | [INFO] [stdout] 1640 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1817:29 [INFO] [stdout] | [INFO] [stdout] 1817 | sqlx::query_as::<_, UsoCupom>("SELECT * FROM uso_cupons") [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1650:29 [INFO] [stdout] | [INFO] [stdout] 1650 | sqlx::query_as::<_, Cupom>( [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1654:10 [INFO] [stdout] | [INFO] [stdout] 1650 | / sqlx::query_as::<_, Cupom>( [INFO] [stdout] 1651 | | "SELECT * FROM cupons WHERE uuid = ?" [INFO] [stdout] 1652 | | ) [INFO] [stdout] 1653 | | .bind(id.to_string()) [INFO] [stdout] 1654 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1818:14 [INFO] [stdout] | [INFO] [stdout] 1817 | / sqlx::query_as::<_, UsoCupom>("SELECT * FROM uso_cupons") [INFO] [stdout] 1818 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1668:34 [INFO] [stdout] | [INFO] [stdout] 1668 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `TipoDesconto: ToString` or `TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1879:34 [INFO] [stdout] | [INFO] [stdout] 1879 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::TipoDesconto: ToString` or `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1669:20 [INFO] [stdout] | [INFO] [stdout] 1669 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1669 - .bind(item.valor_desconto) [INFO] [stdout] 1669 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Promocao` [INFO] [stdout] --> src/repositories_async.rs:1880:20 [INFO] [stdout] | [INFO] [stdout] 1880 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1880 - .bind(item.valor_desconto) [INFO] [stdout] 1880 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_minimo` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1670:20 [INFO] [stdout] | [INFO] [stdout] 1670 | .bind(item.valor_minimo) [INFO] [stdout] | ^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `data_validade` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1671:20 [INFO] [stdout] | [INFO] [stdout] 1671 | .bind(item.data_validade) [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `limite_uso` on type `promocoes::Cupom` [INFO] [stdout] --> src/repositories_async.rs:1672:20 [INFO] [stdout] | [INFO] [stdout] 1672 | .bind(item.limite_uso) [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1673:27 [INFO] [stdout] | [INFO] [stdout] 1673 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1884:27 [INFO] [stdout] | [INFO] [stdout] 1884 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1894:29 [INFO] [stdout] | [INFO] [stdout] 1894 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Cupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1701:29 [INFO] [stdout] | [INFO] [stdout] 1701 | sqlx::query_as::<_, Cupom>("SELECT * FROM cupons") [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Cupom` [INFO] [stdout] --> src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1898:10 [INFO] [stdout] | [INFO] [stdout] 1894 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1895 | | "SELECT * FROM promocoes WHERE uuid = ?" [INFO] [stdout] 1896 | | ) [INFO] [stdout] 1897 | | .bind(id.to_string()) [INFO] [stdout] 1898 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Cupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1702:14 [INFO] [stdout] | [INFO] [stdout] 1701 | / sqlx::query_as::<_, Cupom>("SELECT * FROM cupons") [INFO] [stdout] 1702 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Cupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Cupom { [INFO] [stdout] | ---------------- doesn't satisfy `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Cupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1912:34 [INFO] [stdout] | [INFO] [stdout] 1912 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::TipoDesconto: ToString` or `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Promocao` [INFO] [stdout] --> src/repositories_async.rs:1913:20 [INFO] [stdout] | [INFO] [stdout] 1913 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1913 - .bind(item.valor_desconto) [INFO] [stdout] 1913 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1772:29 [INFO] [stdout] | [INFO] [stdout] 1772 | sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1917:27 [INFO] [stdout] | [INFO] [stdout] 1917 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1776:10 [INFO] [stdout] | [INFO] [stdout] 1772 | / sqlx::query_as::<_, UsoCupom>( [INFO] [stdout] 1773 | | "SELECT * FROM uso_cupons WHERE uuid = ?" [INFO] [stdout] 1774 | | ) [INFO] [stdout] 1775 | | .bind(id.to_string()) [INFO] [stdout] 1776 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1945:29 [INFO] [stdout] | [INFO] [stdout] 1945 | sqlx::query_as::<_, Promocao>("SELECT * FROM promocoes") [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::UsoCupom: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1817:29 [INFO] [stdout] | [INFO] [stdout] 1817 | sqlx::query_as::<_, UsoCupom>("SELECT * FROM uso_cupons") [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::UsoCupom` [INFO] [stdout] --> src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1946:14 [INFO] [stdout] | [INFO] [stdout] 1945 | / sqlx::query_as::<_, Promocao>("SELECT * FROM promocoes") [INFO] [stdout] 1946 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::UsoCupom, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1818:14 [INFO] [stdout] | [INFO] [stdout] 1817 | / sqlx::query_as::<_, UsoCupom>("SELECT * FROM uso_cupons") [INFO] [stdout] 1818 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::UsoCupom, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:176:1 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct UsoCupom { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::UsoCupom: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/usuario_service.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn buscar_por_email(&self, email: &str) -> Option { [INFO] [stdout] | --------------- expected `Option` because of return type [INFO] [stdout] 53 | self.usuario_repo.buscar_por_email(email) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `Option<&Usuario>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option<&usuario::Usuario>` [INFO] [stdout] help: use `Option::cloned` to clone the value inside the `Option` [INFO] [stdout] | [INFO] [stdout] 53 | self.usuario_repo.buscar_por_email(email).cloned() [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1879:34 [INFO] [stdout] | [INFO] [stdout] 1879 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `TipoDesconto: ToString` or `TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Promocao` [INFO] [stdout] --> src/repositories_async.rs:1880:20 [INFO] [stdout] | [INFO] [stdout] 1880 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1880 - .bind(item.valor_desconto) [INFO] [stdout] 1880 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1884:27 [INFO] [stdout] | [INFO] [stdout] 1884 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::UsuarioRepository` in the current scope [INFO] [stdout] --> src/services/usuario_service.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct UsuarioRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 58 - self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] 58 + self.usuario_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1894:29 [INFO] [stdout] | [INFO] [stdout] 1894 | sqlx::query_as::<_, Promocao>( [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_optional` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1898:10 [INFO] [stdout] | [INFO] [stdout] 1894 | / sqlx::query_as::<_, Promocao>( [INFO] [stdout] 1895 | | "SELECT * FROM promocoes WHERE uuid = ?" [INFO] [stdout] 1896 | | ) [INFO] [stdout] 1897 | | .bind(id.to_string()) [INFO] [stdout] 1898 | | .fetch_optional(&self.pool) [INFO] [stdout] | | -^^^^^^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::UsuarioRepository` in the current scope [INFO] [stdout] --> src/services/usuario_service.rs:68:45 [INFO] [stdout] | [INFO] [stdout] 68 | let mut usuario = self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct UsuarioRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 68 - let mut usuario = self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] 68 + let mut usuario = self.usuario_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `TipoDesconto` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1912:34 [INFO] [stdout] | [INFO] [stdout] 1912 | .bind(item.tipo_desconto.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `TipoDesconto` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum TipoDesconto { [INFO] [stdout] | --------------------- method `to_string` not found for this enum because it doesn't satisfy `TipoDesconto: ToString` or `TipoDesconto: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TipoDesconto: std::fmt::Display` [INFO] [stdout] which is required by `TipoDesconto: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_desconto` on type `promocoes::Promocao` [INFO] [stdout] --> src/repositories_async.rs:1913:20 [INFO] [stdout] | [INFO] [stdout] 1913 | .bind(item.valor_desconto) [INFO] [stdout] | ^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] help: a field with a similar name exists [INFO] [stdout] | [INFO] [stdout] 1913 - .bind(item.valor_desconto) [INFO] [stdout] 1913 + .bind(item.tipo_desconto) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/usuario_service.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | self.usuario_repo.atualizar(usuario.clone()) [INFO] [stdout] | ^^^^^^^^^----------------- argument #2 of type `usuario::Usuario` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 85 | self.usuario_repo.atualizar(usuario.clone(), /* usuario::Usuario */) [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/usuario_service.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn listar_todos(&self) -> Vec { [INFO] [stdout] | ------------ expected `Vec` because of return type [INFO] [stdout] 93 | self.usuario_repo.listar_todos() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `Vec<&Usuario>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<&usuario::Usuario>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `promocoes::StatusCupom` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/repositories_async.rs:1917:27 [INFO] [stdout] | [INFO] [stdout] 1917 | .bind(item.status.to_string()) [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `promocoes::StatusCupom` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | pub enum StatusCupom { [INFO] [stdout] | -------------------- method `to_string` not found for this enum because it doesn't satisfy `promocoes::StatusCupom: ToString` or `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::StatusCupom: std::fmt::Display` [INFO] [stdout] which is required by `promocoes::StatusCupom: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/fmt/mod.rs:1186:0 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/usuario_service.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | Ok(usuario) [INFO] [stdout] | -- ^^^^^^^ expected `Usuario`, found `&Usuario` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `&usuario::Usuario` due to the type of the argument passed [INFO] [stdout] --> src/services/usuario_service.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | Ok(usuario) [INFO] [stdout] | ^^^-------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/result.rs:561:4 [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 120 | Ok(usuario.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `for<'r> promocoes::Promocao: FromRow<'r, _>` is not satisfied [INFO] [stdout] --> src/repositories_async.rs:1945:29 [INFO] [stdout] | [INFO] [stdout] 1945 | sqlx::query_as::<_, Promocao>("SELECT * FROM promocoes") [INFO] [stdout] | ^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `for<'r> FromRow<'r, _>` is not implemented for `promocoes::Promocao` [INFO] [stdout] --> src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `FromRow<'r, R>`: [INFO] [stdout] `()` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7)` implements `FromRow<'r, R>` [INFO] [stdout] `(T1, T2, T3, T4, T5, T6, T7, T8)` implements `FromRow<'r, R>` [INFO] [stdout] and 20 others [INFO] [stdout] note: required by a bound in `sqlx::query_as` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.8.6/src/query_as.rs:345:8 [INFO] [stdout] | [INFO] [stdout] 342 | pub fn query_as<'q, DB, O>(sql: &'q str) -> QueryAs<'q, DB, O, ::Arguments<'q>> [INFO] [stdout] | -------- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 345 | O: for<'r> FromRow<'r, DB::Row>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `query_as` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `&std::string::String` is not an iterator [INFO] [stdout] --> src/services/loja_service.rs:87:24 [INFO] [stdout] | [INFO] [stdout] 87 | for horario in &loja.horarios_de_funcionamento { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&std::string::String` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `&std::string::String` [INFO] [stdout] = note: required for `&std::string::String` to implement `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | loja.telefone = novo_telefone; [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ expected `Option`, found `String` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 170 | loja.telefone = Some(novo_telefone); [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:174:46 [INFO] [stdout] | [INFO] [stdout] 174 | loja.horarios_de_funcionamento = novos_horarios; [INFO] [stdout] | ------------------------------ ^^^^^^^^^^^^^^ expected `String`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::string::String` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `fetch_all` exists for struct `QueryAs<'_, _, promocoes::Promocao, _>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/repositories_async.rs:1946:14 [INFO] [stdout] | [INFO] [stdout] 1945 | / sqlx::query_as::<_, Promocao>("SELECT * FROM promocoes") [INFO] [stdout] 1946 | | .fetch_all(&self.pool) [INFO] [stdout] | | -^^^^^^^^^ method cannot be called on `QueryAs<'_, _, promocoes::Promocao, _>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:205:1 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct Promocao { [INFO] [stdout] | ------------------- doesn't satisfy `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `promocoes::Promocao: FromRow<'r, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/loja_service.rs:177:24 [INFO] [stdout] | [INFO] [stdout] 177 | self.loja_repo.atualizar(loja.clone()) [INFO] [stdout] | ^^^^^^^^^ ------------ argument #1 of type `uuid::Uuid` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ -- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 177 | self.loja_repo.atualizar(/* uuid::Uuid */, loja.clone()) [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/usuario_service.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn buscar_por_email(&self, email: &str) -> Option { [INFO] [stdout] | --------------- expected `Option` because of return type [INFO] [stdout] 53 | self.usuario_repo.buscar_por_email(email) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `Option<&Usuario>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option<&usuario::Usuario>` [INFO] [stdout] help: use `Option::cloned` to clone the value inside the `Option` [INFO] [stdout] | [INFO] [stdout] 53 | self.usuario_repo.buscar_por_email(email).cloned() [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | Ok(loja) [INFO] [stdout] | -- ^^^^ expected `Loja`, found `&Loja` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `&loja::Loja` due to the type of the argument passed [INFO] [stdout] --> src/services/loja_service.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | Ok(loja) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/result.rs:561:4 [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 180 | Ok(loja.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn listar_todas(&self) -> Vec { [INFO] [stdout] | --------- expected `Vec` because of return type [INFO] [stdout] 185 | self.loja_repo.listar_todos() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `Vec<&Loja>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<&loja::Loja>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::UsuarioRepository` in the current scope [INFO] [stdout] --> src/services/usuario_service.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct UsuarioRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 58 - self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] 58 + self.usuario_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::LojaRepository` in the current scope [INFO] [stdout] --> src/services/loja_service.rs:210:36 [INFO] [stdout] | [INFO] [stdout] 210 | let _loja = self.loja_repo.buscar_por_uuid(loja_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct LojaRepository { [INFO] [stdout] | ------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 210 - let _loja = self.loja_repo.buscar_por_uuid(loja_uuid) [INFO] [stdout] 210 + let _loja = self.loja_repo.buscar_por_id(loja_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::UsuarioRepository` in the current scope [INFO] [stdout] --> src/services/usuario_service.rs:68:45 [INFO] [stdout] | [INFO] [stdout] 68 | let mut usuario = self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct UsuarioRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 68 - let mut usuario = self.usuario_repo.buscar_por_uuid(uuid) [INFO] [stdout] 68 + let mut usuario = self.usuario_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/usuario_service.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | self.usuario_repo.atualizar(usuario.clone()) [INFO] [stdout] | ^^^^^^^^^----------------- argument #2 of type `usuario::Usuario` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 85 | self.usuario_repo.atualizar(usuario.clone(), /* usuario::Usuario */) [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 66 | let produto = self.produto_repo [INFO] [stdout] | ___________________________- [INFO] [stdout] 67 | | .buscar_por_uuid(item_dto.produto_uuid) [INFO] [stdout] | |_________________-^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 67 - .buscar_por_uuid(item_dto.produto_uuid) [INFO] [stdout] 67 + .buscar_por_id(item_dto.produto_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/usuario_service.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn listar_todos(&self) -> Vec { [INFO] [stdout] | ------------ expected `Vec` because of return type [INFO] [stdout] 93 | self.usuario_repo.listar_todos() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `Vec<&Usuario>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<&usuario::Usuario>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/usuario_service.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | Ok(usuario) [INFO] [stdout] | -- ^^^^^^^ expected `Usuario`, found `&Usuario` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `&usuario::Usuario` due to the type of the argument passed [INFO] [stdout] --> src/services/usuario_service.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | Ok(usuario) [INFO] [stdout] | ^^^-------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/result.rs:561:4 [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 120 | Ok(usuario.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 81 | let item = pedido.adicionar_item_pedido( [INFO] [stdout] | --------------------- arguments to this method are incorrect [INFO] [stdout] 82 | &produto, [INFO] [stdout] 83 | item_dto.quantidade, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/models/pedido.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn adicionar_item_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | quantidade: i32, [INFO] [stdout] | --------------- [INFO] [stdout] help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 83 | item_dto.quantidade.try_into().unwrap(), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `&std::string::String` is not an iterator [INFO] [stdout] --> src/services/loja_service.rs:87:24 [INFO] [stdout] | [INFO] [stdout] 87 | for horario in &loja.horarios_de_funcionamento { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&std::string::String` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `&std::string::String` [INFO] [stdout] = note: required for `&std::string::String` to implement `IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:170:29 [INFO] [stdout] | [INFO] [stdout] 170 | loja.telefone = novo_telefone; [INFO] [stdout] | ------------- ^^^^^^^^^^^^^ expected `Option`, found `String` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found struct `std::string::String` [INFO] [stdout] help: try wrapping the expression in `Some` [INFO] [stdout] | [INFO] [stdout] 170 | loja.telefone = Some(novo_telefone); [INFO] [stdout] | +++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:174:46 [INFO] [stdout] | [INFO] [stdout] 174 | loja.horarios_de_funcionamento = novos_horarios; [INFO] [stdout] | ------------------------------ ^^^^^^^^^^^^^^ expected `String`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | expected due to the type of this binding [INFO] [stdout] | [INFO] [stdout] = note: expected struct `std::string::String` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/loja_service.rs:177:24 [INFO] [stdout] | [INFO] [stdout] 177 | self.loja_repo.atualizar(loja.clone()) [INFO] [stdout] | ^^^^^^^^^ ------------ argument #1 of type `Uuid` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ -- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 177 | self.loja_repo.atualizar(/* Uuid */, loja.clone()) [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:180:12 [INFO] [stdout] | [INFO] [stdout] 180 | Ok(loja) [INFO] [stdout] | -- ^^^^ expected `Loja`, found `&Loja` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `&loja::Loja` due to the type of the argument passed [INFO] [stdout] --> src/services/loja_service.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | Ok(loja) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/result.rs:561:4 [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 180 | Ok(loja.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/loja_service.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn listar_todas(&self) -> Vec { [INFO] [stdout] | --------- expected `Vec` because of return type [INFO] [stdout] 185 | self.loja_repo.listar_todos() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `Vec<&Loja>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<&loja::Loja>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adicionar_adicional_por_uuid` found for mutable reference `&mut ItemPedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | item.adicionar_adicional_por_uuid(adicional_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `adicionar_adicional` with a similar name [INFO] [stdout] | [INFO] [stdout] 90 - item.adicionar_adicional_por_uuid(adicional_uuid) [INFO] [stdout] 90 + item.adicionar_adicional(adicional_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calcular_total` found for mutable reference `&mut ItemPedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | subtotal += item.calcular_total(); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut ItemPedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_total` on type `pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | pedido.valor_total = subtotal + taxa_entrega - desconto; [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::LojaRepository` in the current scope [INFO] [stdout] --> src/services/loja_service.rs:210:36 [INFO] [stdout] | [INFO] [stdout] 210 | let _loja = self.loja_repo.buscar_por_uuid(loja_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:77:1 [INFO] [stdout] | [INFO] [stdout] 77 | pub struct LojaRepository { [INFO] [stdout] | ------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 210 - let _loja = self.loja_repo.buscar_por_uuid(loja_uuid) [INFO] [stdout] 210 + let _loja = self.loja_repo.buscar_por_id(loja_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_total` on type `pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:116:19 [INFO] [stdout] | [INFO] [stdout] 116 | if pedido.valor_total < 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 66 | let produto = self.produto_repo [INFO] [stdout] | ___________________________- [INFO] [stdout] 67 | | .buscar_por_uuid(item_dto.produto_uuid) [INFO] [stdout] | |_________________-^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 67 - .buscar_por_uuid(item_dto.produto_uuid) [INFO] [stdout] 67 + .buscar_por_id(item_dto.produto_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | self.pedido_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 129 - self.pedido_repo.buscar_por_uuid(uuid) [INFO] [stdout] 129 + self.pedido_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:137:14 [INFO] [stdout] | [INFO] [stdout] 137 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:145:14 [INFO] [stdout] | [INFO] [stdout] 145 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:152:37 [INFO] [stdout] | [INFO] [stdout] 152 | .filter(|p| p.status == status) [INFO] [stdout] | -------- ^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 81 | let item = pedido.adicionar_item_pedido( [INFO] [stdout] | --------------------- arguments to this method are incorrect [INFO] [stdout] 82 | &produto, [INFO] [stdout] 83 | item_dto.quantidade, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `i32`, found `u32` [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/models/pedido.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn adicionar_item_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 157 | quantidade: i32, [INFO] [stdout] | --------------- [INFO] [stdout] help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 83 | item_dto.quantidade.try_into().unwrap(), [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:162:43 [INFO] [stdout] | [INFO] [stdout] 162 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 162 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 162 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `adicionar_adicional_por_uuid` found for mutable reference `&mut ItemPedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | item.adicionar_adicional_por_uuid(adicional_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `adicionar_adicional` with a similar name [INFO] [stdout] | [INFO] [stdout] 90 - item.adicionar_adicional_por_uuid(adicional_uuid) [INFO] [stdout] 90 + item.adicionar_adicional(adicional_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/pedido_service.rs:171:26 [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calcular_total` found for mutable reference `&mut ItemPedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | subtotal += item.calcular_total(); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `&mut ItemPedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_total` on type `pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:113:16 [INFO] [stdout] | [INFO] [stdout] 113 | pedido.valor_total = subtotal + taxa_entrega - desconto; [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_total` on type `pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:116:19 [INFO] [stdout] | [INFO] [stdout] 116 | if pedido.valor_total < 0.0 { [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:207:43 [INFO] [stdout] | [INFO] [stdout] 207 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 207 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 207 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/pedido_service.rs:222:26 [INFO] [stdout] | [INFO] [stdout] 222 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 222 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:129:26 [INFO] [stdout] | [INFO] [stdout] 129 | self.pedido_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 129 - self.pedido_repo.buscar_por_uuid(uuid) [INFO] [stdout] 129 + self.pedido_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:137:14 [INFO] [stdout] | [INFO] [stdout] 137 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:145:14 [INFO] [stdout] | [INFO] [stdout] 145 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:152:37 [INFO] [stdout] | [INFO] [stdout] 152 | .filter(|p| p.status == status) [INFO] [stdout] | -------- ^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `pedido::EstadoDePedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:233:44 [INFO] [stdout] | [INFO] [stdout] 233 | .filter(|p| !matches!(p.status.as_str(), "entregue" | "cancelado")) [INFO] [stdout] | ^^^^^^ method not found in `pedido::EstadoDePedido` [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `as_str` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:248:63 [INFO] [stdout] | [INFO] [stdout] 248 | let entregues = pedidos.iter().filter(|p| p.status == "entregue").count(); [INFO] [stdout] | -------- ^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:249:64 [INFO] [stdout] | [INFO] [stdout] 249 | let cancelados = pedidos.iter().filter(|p| p.status == "cancelado").count(); [INFO] [stdout] | -------- ^^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:162:43 [INFO] [stdout] | [INFO] [stdout] 162 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 162 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 162 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `pedido::EstadoDePedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:251:44 [INFO] [stdout] | [INFO] [stdout] 251 | .filter(|p| !matches!(p.status.as_str(), "entregue" | "cancelado")) [INFO] [stdout] | ^^^^^^ method not found in `pedido::EstadoDePedido` [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `as_str` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:255:37 [INFO] [stdout] | [INFO] [stdout] 255 | .filter(|p| p.status == "entregue") [INFO] [stdout] | -------- ^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_total` on type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:256:24 [INFO] [stdout] | [INFO] [stdout] 256 | .map(|p| p.valor_total) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/pedido_service.rs:171:26 [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:207:43 [INFO] [stdout] | [INFO] [stdout] 207 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 207 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 207 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:281:43 [INFO] [stdout] | [INFO] [stdout] 281 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 281 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 281 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/pedido_service.rs:290:26 [INFO] [stdout] | [INFO] [stdout] 290 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 290 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/pedido_service.rs:222:26 [INFO] [stdout] | [INFO] [stdout] 222 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 222 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `pedido::EstadoDePedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:233:44 [INFO] [stdout] | [INFO] [stdout] 233 | .filter(|p| !matches!(p.status.as_str(), "entregue" | "cancelado")) [INFO] [stdout] | ^^^^^^ method not found in `pedido::EstadoDePedido` [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `as_str` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:248:63 [INFO] [stdout] | [INFO] [stdout] 248 | let entregues = pedidos.iter().filter(|p| p.status == "entregue").count(); [INFO] [stdout] | -------- ^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:304:39 [INFO] [stdout] | [INFO] [stdout] 304 | let pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 304 - let pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 304 + let pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:249:64 [INFO] [stdout] | [INFO] [stdout] 249 | let cancelados = pedidos.iter().filter(|p| p.status == "cancelado").count(); [INFO] [stdout] | -------- ^^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:321:27 [INFO] [stdout] | [INFO] [stdout] 321 | .filter(|p| p.criado_em >= data_limite) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_str` found for enum `pedido::EstadoDePedido` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:251:44 [INFO] [stdout] | [INFO] [stdout] 251 | .filter(|p| !matches!(p.status.as_str(), "entregue" | "cancelado")) [INFO] [stdout] | ^^^^^^ method not found in `pedido::EstadoDePedido` [INFO] [stdout] | [INFO] [stdout] ::: src/models/pedido.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub enum EstadoDePedido { [INFO] [stdout] | ----------------------- method `as_str` not found for this enum [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/pedido_service.rs:255:37 [INFO] [stdout] | [INFO] [stdout] 255 | .filter(|p| p.status == "entregue") [INFO] [stdout] | -------- ^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `valor_total` on type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:256:24 [INFO] [stdout] | [INFO] [stdout] 256 | .map(|p| p.valor_total) [INFO] [stdout] | ^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::CategoriaProdutosRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | if self.categoria_repo.buscar_por_uuid(categoria_uuid).is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct CategoriaProdutosRepository { [INFO] [stdout] | -------------------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 41 - if self.categoria_repo.buscar_por_uuid(categoria_uuid).is_none() { [INFO] [stdout] 41 + if self.categoria_repo.buscar_por_id(categoria_uuid).is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 65 - self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] 65 + self.produto_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:281:43 [INFO] [stdout] | [INFO] [stdout] 281 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 281 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 281 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/pedido_service.rs:290:26 [INFO] [stdout] | [INFO] [stdout] 290 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 290 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:93:45 [INFO] [stdout] | [INFO] [stdout] 93 | let mut produto = self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 93 - let mut produto = self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] 93 + let mut produto = self.produto_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/produto_service.rs:118:27 [INFO] [stdout] | [INFO] [stdout] 118 | self.produto_repo.atualizar(produto.clone()) [INFO] [stdout] | ^^^^^^^^^----------------- argument #2 of type `produto::Produto` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 118 | self.produto_repo.atualizar(produto.clone(), /* produto::Produto */) [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/pedido_service.rs:304:39 [INFO] [stdout] | [INFO] [stdout] 304 | let pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 304 - let pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 304 + let pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `&pedido::Pedido` [INFO] [stdout] --> src/services/pedido_service.rs:321:27 [INFO] [stdout] | [INFO] [stdout] 321 | .filter(|p| p.criado_em >= data_limite) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `celular`, `data_hora`, `loja_uuid`, `frete`, `comentarios` ... and 4 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:136:41 [INFO] [stdout] | [INFO] [stdout] 136 | let produto = self.produto_repo.buscar_por_uuid(produto_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 136 - let produto = self.produto_repo.buscar_por_uuid(produto_uuid) [INFO] [stdout] 136 + let produto = self.produto_repo.buscar_por_id(produto_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::CategoriaProdutosRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | if self.categoria_repo.buscar_por_uuid(categoria_uuid).is_none() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct CategoriaProdutosRepository { [INFO] [stdout] | -------------------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 41 - if self.categoria_repo.buscar_por_uuid(categoria_uuid).is_none() { [INFO] [stdout] 41 + if self.categoria_repo.buscar_por_id(categoria_uuid).is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::AdicionalRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:142:49 [INFO] [stdout] | [INFO] [stdout] 142 | let adicional = self.adicional_repo.buscar_por_uuid(adicional_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 426 | pub struct AdicionalRepository { [INFO] [stdout] | ------------------------------ method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 142 - let adicional = self.adicional_repo.buscar_por_uuid(adicional_uuid) [INFO] [stdout] 142 + let adicional = self.adicional_repo.buscar_por_id(adicional_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 65 - self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] 65 + self.produto_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::CategoriaProdutosRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:174:29 [INFO] [stdout] | [INFO] [stdout] 174 | self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct CategoriaProdutosRepository { [INFO] [stdout] | -------------------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 174 - self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] 174 + self.categoria_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&categoria::CategoriaProdutos` [INFO] [stdout] --> src/services/produto_service.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 182 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&categoria::CategoriaProdutos>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `categoria::CategoriaProdutos`, found `&categoria::CategoriaProdutos` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:93:45 [INFO] [stdout] | [INFO] [stdout] 93 | let mut produto = self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 93 - let mut produto = self.produto_repo.buscar_por_uuid(uuid) [INFO] [stdout] 93 + let mut produto = self.produto_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/produto_service.rs:118:27 [INFO] [stdout] | [INFO] [stdout] 118 | self.produto_repo.atualizar(produto.clone()) [INFO] [stdout] | ^^^^^^^^^----------------- argument #2 of type `produto::Produto` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 118 | self.produto_repo.atualizar(produto.clone(), /* produto::Produto */) [INFO] [stdout] | ++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::CategoriaProdutosRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:192:49 [INFO] [stdout] | [INFO] [stdout] 192 | let mut categoria = self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct CategoriaProdutosRepository { [INFO] [stdout] | -------------------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 192 - let mut categoria = self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] 192 + let mut categoria = self.categoria_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/produto_service.rs:206:29 [INFO] [stdout] | [INFO] [stdout] 206 | self.categoria_repo.atualizar(categoria.clone()) [INFO] [stdout] | ^^^^^^^^^------------------- argument #2 of type `categoria::CategoriaProdutos` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 206 | self.categoria_repo.atualizar(categoria.clone(), /* categoria::CategoriaProdutos */) [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::ProdutoRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:136:41 [INFO] [stdout] | [INFO] [stdout] 136 | let produto = self.produto_repo.buscar_por_uuid(produto_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:204:1 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct ProdutoRepository { [INFO] [stdout] | ---------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 136 - let produto = self.produto_repo.buscar_por_uuid(produto_uuid) [INFO] [stdout] 136 + let produto = self.produto_repo.buscar_por_id(produto_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::AdicionalRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 426 | pub struct AdicionalRepository { [INFO] [stdout] | ------------------------------ method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 252 - self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] 252 + self.adicional_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&adicional::Adicional` [INFO] [stdout] --> src/services/produto_service.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&adicional::Adicional>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `adicional::Adicional`, found `&adicional::Adicional` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::AdicionalRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:142:49 [INFO] [stdout] | [INFO] [stdout] 142 | let adicional = self.adicional_repo.buscar_por_uuid(adicional_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 426 | pub struct AdicionalRepository { [INFO] [stdout] | ------------------------------ method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 142 - let adicional = self.adicional_repo.buscar_por_uuid(adicional_uuid) [INFO] [stdout] 142 + let adicional = self.adicional_repo.buscar_por_id(adicional_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::AdicionalRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:271:49 [INFO] [stdout] | [INFO] [stdout] 271 | let mut adicional = self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 426 | pub struct AdicionalRepository { [INFO] [stdout] | ------------------------------ method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 271 - let mut adicional = self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] 271 + let mut adicional = self.adicional_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/produto_service.rs:292:29 [INFO] [stdout] | [INFO] [stdout] 292 | self.adicional_repo.atualizar(adicional.clone()) [INFO] [stdout] | ^^^^^^^^^------------------- argument #2 of type `adicional::Adicional` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 292 | self.adicional_repo.atualizar(adicional.clone(), /* adicional::Adicional */) [INFO] [stdout] | ++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::CategoriaProdutosRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:174:29 [INFO] [stdout] | [INFO] [stdout] 174 | self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct CategoriaProdutosRepository { [INFO] [stdout] | -------------------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 174 - self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] 174 + self.categoria_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:309:14 [INFO] [stdout] | [INFO] [stdout] 309 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:322:14 [INFO] [stdout] | [INFO] [stdout] 322 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&categoria::CategoriaProdutos` [INFO] [stdout] --> src/services/produto_service.rs:182:14 [INFO] [stdout] | [INFO] [stdout] 182 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&categoria::CategoriaProdutos>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `categoria::CategoriaProdutos`, found `&categoria::CategoriaProdutos` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `year` found for struct `DateTime` in the current scope [INFO] [stdout] --> src/services/pagamento_service.rs:286:31 [INFO] [stdout] | [INFO] [stdout] 286 | let ano_atual = agora.year() as u32; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.43/src/traits.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn year(&self) -> i32; [INFO] [stdout] | ---- the method is available for `DateTime` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Datelike` which provides `year` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Datelike; [INFO] [stdout] | [INFO] [stdout] help: there is a method `year_ce` with a similar name [INFO] [stdout] | [INFO] [stdout] 286 | let ano_atual = agora.year_ce() as u32; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::CategoriaProdutosRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:192:49 [INFO] [stdout] | [INFO] [stdout] 192 | let mut categoria = self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:284:1 [INFO] [stdout] | [INFO] [stdout] 284 | pub struct CategoriaProdutosRepository { [INFO] [stdout] | -------------------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 192 - let mut categoria = self.categoria_repo.buscar_por_uuid(uuid) [INFO] [stdout] 192 + let mut categoria = self.categoria_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/produto_service.rs:206:29 [INFO] [stdout] | [INFO] [stdout] 206 | self.categoria_repo.atualizar(categoria.clone()) [INFO] [stdout] | ^^^^^^^^^------------------- argument #2 of type `categoria::CategoriaProdutos` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 206 | self.categoria_repo.atualizar(categoria.clone(), /* categoria::CategoriaProdutos */) [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `month` found for struct `DateTime` in the current scope [INFO] [stdout] --> src/services/pagamento_service.rs:287:31 [INFO] [stdout] | [INFO] [stdout] 287 | let mes_atual = agora.month(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.43/src/traits.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn month(&self) -> u32; [INFO] [stdout] | ----- the method is available for `DateTime` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Datelike` which provides `month` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Datelike; [INFO] [stdout] | [INFO] [stdout] help: there is a method `month0` with a similar name [INFO] [stdout] | [INFO] [stdout] 287 | let mes_atual = agora.month0(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ativo` on type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 103 | if !cupom.ativo { [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `usos_realizados` on type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | if cupom.usos_realizados >= limite { [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `usos_realizados` on type `promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:200:19 [INFO] [stdout] | [INFO] [stdout] 200 | cupom_mut.usos_realizados += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/cupom_service.rs:202:25 [INFO] [stdout] | [INFO] [stdout] 202 | self.cupom_repo.atualizar(cupom_mut) [INFO] [stdout] | ^^^^^^^^^ --------- argument #1 of type `uuid::Uuid` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ -- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 202 | self.cupom_repo.atualizar(/* uuid::Uuid */, cupom_mut) [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::AdicionalRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:252:29 [INFO] [stdout] | [INFO] [stdout] 252 | self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 426 | pub struct AdicionalRepository { [INFO] [stdout] | ------------------------------ method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 252 - self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] 252 + self.adicional_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/cupom_service.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn buscar_por_codigo(&self, codigo: &str) -> Option { [INFO] [stdout] | ------------- expected `Option` because of return type [INFO] [stdout] 210 | self.cupom_repo.buscar_por_codigo(codigo) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `Option<&Cupom>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option<&promocoes::Cupom>` [INFO] [stdout] help: use `Option::cloned` to clone the value inside the `Option` [INFO] [stdout] | [INFO] [stdout] 210 | self.cupom_repo.buscar_por_codigo(codigo).cloned() [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&adicional::Adicional` [INFO] [stdout] --> src/services/produto_service.rs:260:14 [INFO] [stdout] | [INFO] [stdout] 260 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&adicional::Adicional>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `adicional::Adicional`, found `&adicional::Adicional` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/cupom_service.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn listar_cupons_ativos(&self, loja_uuid: Uuid) -> Vec { [INFO] [stdout] | ---------- expected `Vec` because of return type [INFO] [stdout] 215 | self.cupom_repo.buscar_ativos(loja_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `Vec<&Cupom>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<&promocoes::Cupom>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:223:14 [INFO] [stdout] | [INFO] [stdout] 223 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&promocoes::Cupom>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `promocoes::Cupom`, found `&promocoes::Cupom` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ativo` on type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:231:15 [INFO] [stdout] | [INFO] [stdout] 231 | cupom.ativo = ativo; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/cupom_service.rs:233:25 [INFO] [stdout] | [INFO] [stdout] 233 | self.cupom_repo.atualizar(cupom) [INFO] [stdout] | ^^^^^^^^^------- [INFO] [stdout] | || [INFO] [stdout] | |expected `Uuid`, found `&Cupom` [INFO] [stdout] | argument #2 of type `promocoes::Cupom` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ -- ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 233 - self.cupom_repo.atualizar(cupom) [INFO] [stdout] 233 + self.cupom_repo.atualizar(/* uuid::Uuid */, /* promocoes::Cupom */) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::AdicionalRepository` in the current scope [INFO] [stdout] --> src/services/produto_service.rs:271:49 [INFO] [stdout] | [INFO] [stdout] 271 | let mut adicional = self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:426:1 [INFO] [stdout] | [INFO] [stdout] 426 | pub struct AdicionalRepository { [INFO] [stdout] | ------------------------------ method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 271 - let mut adicional = self.adicional_repo.buscar_por_uuid(uuid) [INFO] [stdout] 271 + let mut adicional = self.adicional_repo.buscar_por_id(uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `promocoes::CondicoesCupom` in the current scope [INFO] [stdout] --> src/services/cupom_service.rs:310:29 [INFO] [stdout] | [INFO] [stdout] 310 | CondicoesCupom::default(), [INFO] [stdout] | ^^^^^^^ function or associated item not found in `promocoes::CondicoesCupom` [INFO] [stdout] | [INFO] [stdout] ::: src/models/promocoes.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct CondicoesCupom { [INFO] [stdout] | ------------------------- function or associated item `default` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/produto_service.rs:292:29 [INFO] [stdout] | [INFO] [stdout] 292 | self.adicional_repo.atualizar(adicional.clone()) [INFO] [stdout] | ^^^^^^^^^------------------- argument #2 of type `adicional::Adicional` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 292 | self.adicional_repo.atualizar(adicional.clone(), /* adicional::Adicional */) [INFO] [stdout] | ++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:309:14 [INFO] [stdout] | [INFO] [stdout] 309 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&produto::Produto` [INFO] [stdout] --> src/services/produto_service.rs:322:14 [INFO] [stdout] | [INFO] [stdout] 322 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&produto::Produto>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `produto::Produto`, found `&produto::Produto` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/avaliacao_service.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | Ok(avaliacao) [INFO] [stdout] | -- ^^^^^^^^^ expected `AvaliacaoDeProduto`, found `&AvaliacaoDeProduto` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `&avaliacao::AvaliacaoDeProduto` due to the type of the argument passed [INFO] [stdout] --> src/services/avaliacao_service.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | Ok(avaliacao) [INFO] [stdout] | ^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/result.rs:561:4 [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 261 | Ok(avaliacao.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `&&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:300:33 [INFO] [stdout] | [INFO] [stdout] 300 | .then_with(|| b.criado_em.cmp(&a.criado_em)) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `&&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:300:50 [INFO] [stdout] | [INFO] [stdout] 300 | .then_with(|| b.criado_em.cmp(&a.criado_em)) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:303:45 [INFO] [stdout] | [INFO] [stdout] 303 | avaliacoes.into_iter().take(limite).collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&avaliacao::AvaliacaoDeLoja>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `avaliacao::AvaliacaoDeLoja`, found `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:316:45 [INFO] [stdout] | [INFO] [stdout] 316 | avaliacoes.into_iter().take(limite).collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&avaliacao::AvaliacaoDeLoja>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `avaliacao::AvaliacaoDeLoja`, found `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `year` found for struct `DateTime` in the current scope [INFO] [stdout] --> src/services/pagamento_service.rs:286:31 [INFO] [stdout] | [INFO] [stdout] 286 | let ano_atual = agora.year() as u32; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.43/src/traits.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | fn year(&self) -> i32; [INFO] [stdout] | ---- the method is available for `DateTime` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Datelike` which provides `year` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Datelike; [INFO] [stdout] | [INFO] [stdout] help: there is a method `year_ce` with a similar name [INFO] [stdout] | [INFO] [stdout] 286 | let ano_atual = agora.year_ce() as u32; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `month` found for struct `DateTime` in the current scope [INFO] [stdout] --> src/services/pagamento_service.rs:287:31 [INFO] [stdout] | [INFO] [stdout] 287 | let mes_atual = agora.month(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.43/src/traits.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn month(&self) -> u32; [INFO] [stdout] | ----- the method is available for `DateTime` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Datelike` which provides `month` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use chrono::Datelike; [INFO] [stdout] | [INFO] [stdout] help: there is a method `month0` with a similar name [INFO] [stdout] | [INFO] [stdout] 287 | let mes_atual = agora.month0(); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ativo` on type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:103:19 [INFO] [stdout] | [INFO] [stdout] 103 | if !cupom.ativo { [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `usos_realizados` on type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:109:22 [INFO] [stdout] | [INFO] [stdout] 109 | if cupom.usos_realizados >= limite { [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `usos_realizados` on type `promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:200:19 [INFO] [stdout] | [INFO] [stdout] 200 | cupom_mut.usos_realizados += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/entrega_service.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 62 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 62 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/cupom_service.rs:202:25 [INFO] [stdout] | [INFO] [stdout] 202 | self.cupom_repo.atualizar(cupom_mut) [INFO] [stdout] | ^^^^^^^^^ --------- argument #1 of type `Uuid` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ -- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 202 | self.cupom_repo.atualizar(/* Uuid */, cupom_mut) [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/entrega_service.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 75 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/cupom_service.rs:210:9 [INFO] [stdout] | [INFO] [stdout] 209 | pub fn buscar_por_codigo(&self, codigo: &str) -> Option { [INFO] [stdout] | ------------- expected `Option` because of return type [INFO] [stdout] 210 | self.cupom_repo.buscar_por_codigo(codigo) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `Option<&Cupom>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found enum `Option<&promocoes::Cupom>` [INFO] [stdout] help: use `Option::cloned` to clone the value inside the `Option` [INFO] [stdout] | [INFO] [stdout] 210 | self.cupom_repo.buscar_por_codigo(codigo).cloned() [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/cupom_service.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 214 | pub fn listar_cupons_ativos(&self, loja_uuid: Uuid) -> Vec { [INFO] [stdout] | ---------- expected `Vec` because of return type [INFO] [stdout] 215 | self.cupom_repo.buscar_ativos(loja_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec`, found `Vec<&Cupom>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec<&promocoes::Cupom>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/entrega_service.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 141 | p.status == "saiu_para_entrega" [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/entrega_service.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:223:14 [INFO] [stdout] | [INFO] [stdout] 223 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&promocoes::Cupom>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `promocoes::Cupom`, found `&promocoes::Cupom` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `ativo` on type `&promocoes::Cupom` [INFO] [stdout] --> src/services/cupom_service.rs:231:15 [INFO] [stdout] | [INFO] [stdout] 231 | cupom.ativo = ativo; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `uuid`, `codigo`, `descricao`, `tipo_desconto`, `loja_uuid` ... and 8 others [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/cupom_service.rs:233:25 [INFO] [stdout] | [INFO] [stdout] 233 | self.cupom_repo.atualizar(cupom) [INFO] [stdout] | ^^^^^^^^^------- [INFO] [stdout] | || [INFO] [stdout] | |expected `Uuid`, found `&Cupom` [INFO] [stdout] | argument #2 of type `promocoes::Cupom` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ -- ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 233 - self.cupom_repo.atualizar(cupom) [INFO] [stdout] 233 + self.cupom_repo.atualizar(/* Uuid */, /* promocoes::Cupom */) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/entrega_service.rs:161:43 [INFO] [stdout] | [INFO] [stdout] 161 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 161 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 161 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/avaliacao_service.rs:261:12 [INFO] [stdout] | [INFO] [stdout] 261 | Ok(avaliacao) [INFO] [stdout] | -- ^^^^^^^^^ expected `AvaliacaoDeProduto`, found `&AvaliacaoDeProduto` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `&avaliacao::AvaliacaoDeProduto` due to the type of the argument passed [INFO] [stdout] --> src/services/avaliacao_service.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | Ok(avaliacao) [INFO] [stdout] | ^^^---------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/result.rs:561:4 [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 261 | Ok(avaliacao.clone()) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/entrega_service.rs:171:26 [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `&&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:300:33 [INFO] [stdout] | [INFO] [stdout] 300 | .then_with(|| b.criado_em.cmp(&a.criado_em)) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `criado_em` on type `&&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:300:50 [INFO] [stdout] | [INFO] [stdout] 300 | .then_with(|| b.criado_em.cmp(&a.criado_em)) [INFO] [stdout] | ^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `usuario_uuid`, `loja_uuid`, `nota`, `descricao`, `uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:303:45 [INFO] [stdout] | [INFO] [stdout] 303 | avaliacoes.into_iter().take(limite).collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&avaliacao::AvaliacaoDeLoja>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `avaliacao::AvaliacaoDeLoja`, found `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/entrega_service.rs:186:37 [INFO] [stdout] | [INFO] [stdout] 186 | .filter(|e| e.status == "entregue") [INFO] [stdout] | -------- ^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] --> src/services/avaliacao_service.rs:316:45 [INFO] [stdout] | [INFO] [stdout] 316 | avaliacoes.into_iter().take(limite).collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&avaliacao::AvaliacaoDeLoja>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `avaliacao::AvaliacaoDeLoja`, found `&avaliacao::AvaliacaoDeLoja` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/entrega_service.rs:257:65 [INFO] [stdout] | [INFO] [stdout] 257 | .filter(|p| p.loja_uuid == loja_uuid && p.status == "pronto") [INFO] [stdout] | -------- ^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/entrega_service.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:93:41 [INFO] [stdout] | [INFO] [stdout] 93 | usuario_repo.criar(usuario.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | if let Some(u) = usuario_repo.buscar_por_email("antonio@email.com") { [INFO] [stdout] | ^^^^^^^ -------------------------------------------------- this expression has type `impl std::future::Future, std::string::String>>` [INFO] [stdout] | | [INFO] [stdout] | expected future, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl std::future::Future, std::string::String>>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/entrega_service.rs:62:43 [INFO] [stdout] | [INFO] [stdout] 62 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 62 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 62 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/entrega_service.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 75 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/entrega_service.rs:141:29 [INFO] [stdout] | [INFO] [stdout] 141 | p.status == "saiu_para_entrega" [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/entrega_service.rs:143:14 [INFO] [stdout] | [INFO] [stdout] 143 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | loja_repo.criar(loja.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:135:51 [INFO] [stdout] | [INFO] [stdout] 135 | adicional_repo.criar(adicional_bacon.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buscar_por_uuid` found for struct `repositories::PedidoRepository` in the current scope [INFO] [stdout] --> src/services/entrega_service.rs:161:43 [INFO] [stdout] | [INFO] [stdout] 161 | let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/repositories.rs:346:1 [INFO] [stdout] | [INFO] [stdout] 346 | pub struct PedidoRepository { [INFO] [stdout] | --------------------------- method `buscar_por_uuid` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `buscar_por_id` with a similar name [INFO] [stdout] | [INFO] [stdout] 161 - let mut pedido = self.pedido_repo.buscar_por_uuid(pedido_uuid) [INFO] [stdout] 161 + let mut pedido = self.pedido_repo.buscar_por_id(pedido_uuid) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/services/entrega_service.rs:171:26 [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone()) [INFO] [stdout] | ^^^^^^^^^---------------- argument #2 of type `pedido::Pedido` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/repositories.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn atualizar(&mut self, id: Uuid, item: T) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^^^ ---- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 171 | self.pedido_repo.atualizar(pedido.clone(), /* pedido::Pedido */) [INFO] [stdout] | ++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:136:53 [INFO] [stdout] | [INFO] [stdout] 136 | adicional_repo.criar(adicional_cheddar.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/entrega_service.rs:186:37 [INFO] [stdout] | [INFO] [stdout] 186 | .filter(|e| e.status == "entregue") [INFO] [stdout] | -------- ^^^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/services/entrega_service.rs:257:65 [INFO] [stdout] | [INFO] [stdout] 257 | .filter(|p| p.loja_uuid == loja_uuid && p.status == "pronto") [INFO] [stdout] | -------- ^^^^^^^^ expected `EstadoDePedido`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `pedido::EstadoDePedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: a value of type `Vec` cannot be built from an iterator over elements of type `&pedido::Pedido` [INFO] [stdout] --> src/services/entrega_service.rs:258:14 [INFO] [stdout] | [INFO] [stdout] 258 | .collect() [INFO] [stdout] | ^^^^^^^ value of type `Vec` cannot be built from `std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] help: the trait `FromIterator<&pedido::Pedido>` is not implemented for `Vec` [INFO] [stdout] but trait `FromIterator` is implemented for it [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/alloc/src/vec/mod.rs:3862:0 [INFO] [stdout] = help: for that trait implementation, expected `pedido::Pedido`, found `&pedido::Pedido` [INFO] [stdout] note: required by a bound in `collect` [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/iter/traits/iterator.rs:2051:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:158:66 [INFO] [stdout] | [INFO] [stdout] 158 | categorias_de_produtos_repo.criar(categoria_bebidas.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:93:41 [INFO] [stdout] | [INFO] [stdout] 93 | usuario_repo.criar(usuario.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:159:65 [INFO] [stdout] | [INFO] [stdout] 159 | categorias_de_produtos_repo.criar(categoria_pizzas.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | if let Some(u) = usuario_repo.buscar_por_email("antonio@email.com") { [INFO] [stdout] | ^^^^^^^ -------------------------------------------------- this expression has type `impl std::future::Future, std::string::String>>` [INFO] [stdout] | | [INFO] [stdout] | expected future, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl std::future::Future, std::string::String>>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:160:71 [INFO] [stdout] | [INFO] [stdout] 160 | categorias_de_produtos_repo.criar(categoria_hamburgueres.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | loja_repo.criar(loja.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:135:51 [INFO] [stdout] | [INFO] [stdout] 135 | adicional_repo.criar(adicional_bacon.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:186:47 [INFO] [stdout] | [INFO] [stdout] 186 | produto_repo.criar(produto_pizza.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:136:53 [INFO] [stdout] | [INFO] [stdout] 136 | adicional_repo.criar(adicional_cheddar.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 187 | produto_repo.criar(produto_coca_cola.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:158:66 [INFO] [stdout] | [INFO] [stdout] 158 | categorias_de_produtos_repo.criar(categoria_bebidas.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:188:51 [INFO] [stdout] | [INFO] [stdout] 188 | produto_repo.criar(produto_hamburger.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:159:65 [INFO] [stdout] | [INFO] [stdout] 159 | categorias_de_produtos_repo.criar(categoria_pizzas.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:262:49 [INFO] [stdout] | [INFO] [stdout] 262 | funcionario_repo.criar(funcionario.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:160:71 [INFO] [stdout] | [INFO] [stdout] 160 | categorias_de_produtos_repo.criar(categoria_hamburgueres.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:186:47 [INFO] [stdout] | [INFO] [stdout] 186 | produto_repo.criar(produto_pizza.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:297:41 [INFO] [stdout] | [INFO] [stdout] 297 | pedido_repo.criar(pedido_1.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 187 | produto_repo.criar(produto_coca_cola.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:298:41 [INFO] [stdout] | [INFO] [stdout] 298 | pedido_repo.criar(pedido_2.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:188:51 [INFO] [stdout] | [INFO] [stdout] 188 | produto_repo.criar(produto_hamburger.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:315:65 [INFO] [stdout] | [INFO] [stdout] 315 | avaliacoes_de_produto_repo.criar(avaliacao_produto.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:262:49 [INFO] [stdout] | [INFO] [stdout] 262 | funcionario_repo.criar(funcionario.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:316:59 [INFO] [stdout] | [INFO] [stdout] 316 | avaliacoes_de_loja_repo.criar(avaliacao_loja.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:297:41 [INFO] [stdout] | [INFO] [stdout] 297 | pedido_repo.criar(pedido_1.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:390:38 [INFO] [stdout] | [INFO] [stdout] 390 | cupom_repo.criar(cupom_bemvindo).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:391:35 [INFO] [stdout] | [INFO] [stdout] 391 | cupom_repo.criar(cupom_frete).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:298:41 [INFO] [stdout] | [INFO] [stdout] 298 | pedido_repo.criar(pedido_2.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | if let Some(c) = cupom_repo.buscar_por_codigo("BEMVINDO") { [INFO] [stdout] | ^^^^^^^ ---------------------------------------- this expression has type `impl std::future::Future, std::string::String>>` [INFO] [stdout] | | [INFO] [stdout] | expected future, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl std::future::Future, std::string::String>>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:315:65 [INFO] [stdout] | [INFO] [stdout] 315 | avaliacoes_de_produto_repo.criar(avaliacao_produto.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for opaque type `impl std::future::Future, std::string::String>>` in the current scope [INFO] [stdout] --> src/main.rs:401:49 [INFO] [stdout] | [INFO] [stdout] 401 | println!("Cupons ativos: {}", cupons_ativos.len()); [INFO] [stdout] | ^^^ method not found in `impl std::future::Future, std::string::String>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:316:59 [INFO] [stdout] | [INFO] [stdout] 316 | avaliacoes_de_loja_repo.criar(avaliacao_loja.clone()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:390:38 [INFO] [stdout] | [INFO] [stdout] 390 | cupom_repo.criar(cupom_bemvindo).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:403:47 [INFO] [stdout] | [INFO] [stdout] 403 | for (n, i) in usuario_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-74ff33251b0a3464.long-type-4213506808685497947.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `Pin> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:391:35 [INFO] [stdout] | [INFO] [stdout] 391 | cupom_repo.criar(cupom_frete).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `Pin> + Send>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:395:12 [INFO] [stdout] | [INFO] [stdout] 395 | if let Some(c) = cupom_repo.buscar_por_codigo("BEMVINDO") { [INFO] [stdout] | ^^^^^^^ ---------------------------------------- this expression has type `impl std::future::Future, std::string::String>>` [INFO] [stdout] | | [INFO] [stdout] | expected future, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl std::future::Future, std::string::String>>` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:407:44 [INFO] [stdout] | [INFO] [stdout] 407 | for (n, i) in loja_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-74ff33251b0a3464.long-type-11651504197383674183.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `len` found for opaque type `impl std::future::Future, std::string::String>>` in the current scope [INFO] [stdout] --> src/main.rs:401:49 [INFO] [stdout] | [INFO] [stdout] 401 | println!("Cupons ativos: {}", cupons_ativos.len()); [INFO] [stdout] | ^^^ method not found in `impl std::future::Future, std::string::String>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:411:47 [INFO] [stdout] | [INFO] [stdout] 411 | for (n, i) in produto_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-74ff33251b0a3464.long-type-9468938191611229237.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:403:47 [INFO] [stdout] | [INFO] [stdout] 403 | for (n, i) in usuario_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-cf97eab67a7e2666.long-type-9665098253804327264.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:415:46 [INFO] [stdout] | [INFO] [stdout] 415 | for (n, i) in pedido_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-74ff33251b0a3464.long-type-1693705062400428926.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:407:44 [INFO] [stdout] | [INFO] [stdout] 407 | for (n, i) in loja_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-cf97eab67a7e2666.long-type-14594578016790179111.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:419:45 [INFO] [stdout] | [INFO] [stdout] 419 | for (n, i) in cupom_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-74ff33251b0a3464.long-type-8507589064450339343.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 59 | async fn main() -> Result<(), sqlx::Error> { [INFO] [stdout] | ----------------------- expected `Result<(), sqlx::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 419 | / for (n, i) in cupom_repo.listar_todos().iter().enumerate() { [INFO] [stdout] 420 | | println!("\n{}:{:?}", n, i); [INFO] [stdout] 421 | | }; [INFO] [stdout] | |______^ expected `Result<(), Error>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), sqlx::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 421 ~ };; [INFO] [stdout] 422 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:411:47 [INFO] [stdout] | [INFO] [stdout] 411 | for (n, i) in produto_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-cf97eab67a7e2666.long-type-8346585774454849603.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:415:46 [INFO] [stdout] | [INFO] [stdout] 415 | for (n, i) in pedido_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-cf97eab67a7e2666.long-type-690252792732451969.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for struct `Pin, String>> + Send>>` in the current scope [INFO] [stdout] --> src/main.rs:419:45 [INFO] [stdout] | [INFO] [stdout] 419 | for (n, i) in cupom_repo.listar_todos().iter().enumerate() { [INFO] [stdout] | ^^^^ method not found in `Pin, String>> + Send>>` [INFO] [stdout] | [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/chickie-cf97eab67a7e2666.long-type-8347939958653592825.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:419:5 [INFO] [stdout] | [INFO] [stdout] 59 | async fn main() -> Result<(), sqlx::Error> { [INFO] [stdout] | ----------------------- expected `Result<(), sqlx::Error>` because of return type [INFO] [stdout] ... [INFO] [stdout] 419 | / for (n, i) in cupom_repo.listar_todos().iter().enumerate() { [INFO] [stdout] 420 | | println!("\n{}:{:?}", n, i); [INFO] [stdout] 421 | | }; [INFO] [stdout] | |______^ expected `Result<(), Error>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), sqlx::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 421 ~ };; [INFO] [stdout] 422 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usuario_uuid` [INFO] [stdout] --> src/models/promocoes.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | usuario_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usuario_uuid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usuario_uuid` [INFO] [stdout] --> src/models/promocoes.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | usuario_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usuario_uuid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor` [INFO] [stdout] --> src/services/pagamento_service.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | valor: f64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor` [INFO] [stdout] --> src/services/pagamento_service.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | valor: f64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor` [INFO] [stdout] --> src/services/pagamento_service.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | fn processar_dinheiro(&self, valor: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transacao_id` [INFO] [stdout] --> src/services/pagamento_service.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | transacao_id: &str, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transacao_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor` [INFO] [stdout] --> src/services/pagamento_service.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | valor: f64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor` [INFO] [stdout] --> src/services/pagamento_service.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | valor: f64, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor` [INFO] [stdout] --> src/services/pagamento_service.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 109 | fn processar_dinheiro(&self, valor: f64) -> Result<(), String> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_valor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/services/cupom_service.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | loja_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transacao_id` [INFO] [stdout] --> src/services/pagamento_service.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | transacao_id: &str, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transacao_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor_pedido` [INFO] [stdout] --> src/services/cupom_service.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | valor_pedido: f64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valor_pedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dia_atual` [INFO] [stdout] --> src/services/cupom_service.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let dia_atual = agora.weekday().num_days_from_sunday() as u8; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dia_atual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hora_atual` [INFO] [stdout] --> src/services/cupom_service.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let hora_atual = agora.time(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hora_atual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `promo` [INFO] [stdout] --> src/services/cupom_service.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | for promo in promocoes { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_promo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/services/cupom_service.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | loja_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `valor_pedido` [INFO] [stdout] --> src/services/cupom_service.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | valor_pedido: f64, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_valor_pedido` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dia_atual` [INFO] [stdout] --> src/services/cupom_service.rs:244:13 [INFO] [stdout] | [INFO] [stdout] 244 | let dia_atual = agora.weekday().num_days_from_sunday() as u8; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dia_atual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hora_atual` [INFO] [stdout] --> src/services/cupom_service.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | let hora_atual = agora.time(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hora_atual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `avaliacao.nota`, which is behind a `&` reference [INFO] [stdout] --> src/services/avaliacao_service.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | avaliacao.nota = nova_nota; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `avaliacao` is a `&` reference, so it cannot be written to [INFO] [stdout] | [INFO] [stdout] help: consider specifying this binding's type [INFO] [stdout] | [INFO] [stdout] 132 | let avaliacao: &mut avaliacao::AvaliacaoDeLoja = self.avaliacao_loja_repo.buscar_por_id(avaliacao_uuid) [INFO] [stdout] | +++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `avaliacao.descricao`, which is behind a `&` reference [INFO] [stdout] --> src/services/avaliacao_service.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | avaliacao.descricao = novo_comentario; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `avaliacao` is a `&` reference, so it cannot be written to [INFO] [stdout] | [INFO] [stdout] help: consider specifying this binding's type [INFO] [stdout] | [INFO] [stdout] 132 | let avaliacao: &mut avaliacao::AvaliacaoDeLoja = self.avaliacao_loja_repo.buscar_por_id(avaliacao_uuid) [INFO] [stdout] | +++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `promo` [INFO] [stdout] --> src/services/cupom_service.rs:279:13 [INFO] [stdout] | [INFO] [stdout] 279 | for promo in promocoes { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_promo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.avaliacao_loja_repo` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/services/avaliacao_service.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 127 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 132 | let avaliacao = self.avaliacao_loja_repo.buscar_por_id(avaliacao_uuid) [INFO] [stdout] | ------------------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 146 | / self.avaliacao_loja_repo [INFO] [stdout] 147 | | .atualizar(avaliacao.uuid, avaliacao.clone()) [INFO] [stdout] | |_________________________________________________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 150 | Ok(avaliacao) [INFO] [stdout] | ------------- returning this value requires that `self.avaliacao_loja_repo` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `avaliacao.nota`, which is behind a `&` reference [INFO] [stdout] --> src/services/avaliacao_service.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | avaliacao.nota = nova_nota; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `avaliacao` is a `&` reference, so it cannot be written to [INFO] [stdout] | [INFO] [stdout] help: consider specifying this binding's type [INFO] [stdout] | [INFO] [stdout] 132 | let avaliacao: &mut avaliacao::AvaliacaoDeLoja = self.avaliacao_loja_repo.buscar_por_id(avaliacao_uuid) [INFO] [stdout] | +++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `avaliacao.descricao`, which is behind a `&` reference [INFO] [stdout] --> src/services/avaliacao_service.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | avaliacao.descricao = novo_comentario; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ `avaliacao` is a `&` reference, so it cannot be written to [INFO] [stdout] | [INFO] [stdout] help: consider specifying this binding's type [INFO] [stdout] | [INFO] [stdout] 132 | let avaliacao: &mut avaliacao::AvaliacaoDeLoja = self.avaliacao_loja_repo.buscar_por_id(avaliacao_uuid) [INFO] [stdout] | +++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.avaliacao_loja_repo` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/services/avaliacao_service.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 127 | &mut self, [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 132 | let avaliacao = self.avaliacao_loja_repo.buscar_por_id(avaliacao_uuid) [INFO] [stdout] | ------------------------ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 146 | / self.avaliacao_loja_repo [INFO] [stdout] 147 | | .atualizar(avaliacao.uuid, avaliacao.clone()) [INFO] [stdout] | |_________________________________________________________^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 150 | Ok(avaliacao) [INFO] [stdout] | ------------- returning this value requires that `self.avaliacao_loja_repo` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entregador_uuid` [INFO] [stdout] --> src/services/entrega_service.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | entregador_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entregador_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/services/entrega_service.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | loja_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `entregador_uuid` [INFO] [stdout] --> src/services/entrega_service.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | entregador_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_entregador_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/services/entrega_service.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | loja_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0502, E0594, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0502, E0594, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chickie` (bin "chickie") due to 288 previous errors; 32 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `chickie` (bin "chickie" test) due to 289 previous errors; 32 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fdbe8e21bc139d63ff3d73a9f5a90ba47fec401a6db05bf55107ca332906caa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdbe8e21bc139d63ff3d73a9f5a90ba47fec401a6db05bf55107ca332906caa4", kill_on_drop: false }` [INFO] [stdout] fdbe8e21bc139d63ff3d73a9f5a90ba47fec401a6db05bf55107ca332906caa4