Hi, I'm trying to pass a trait object as a dependency of the Dispatcher::builder and I can't figure out what I'm doing wrong with it because I get a runtime panick asking for the same type that I seem to be providing:
alloc::sync::Arc<alloc::boxed::Box<dyn finance_api::Market + core::marker::Send + core::marker::Sync>> was requested, but not provided. Available types:
shortbot::State
shortbot::CommandEng
teloxide_core::types::me::Me
teloxide_core::types::message::Message
teloxide_core::types::update::Update
teloxide::dispatching::dialogue::Dialogue<shortbot::State, teloxide::dispatching::dialogue::storage::in_mem_storage::InMemStorage<shortbot::State>>
alloc::sync::Arc<alloc::boxed::Box<dyn finance_api::Market + core::marker::Send + core::marker::Sync>> <== THIS ONE!!
alloc::sync::Arc<teloxide::dispatching::dialogue::storage::in_mem_storage::InMemStorage<shortbot::State>>
teloxide_core::bot::Bot
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Hi, I'm trying to pass a trait object as a dependency of the
Dispatcher::builderand I can't figure out what I'm doing wrong with it because I get a runtime panick asking for the same type that I seem to be providing: