1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crate::domain::dtos::message::MessageDTO;
use async_trait::async_trait;
use clean_base::{
entities::default_response::CreateResponseKind, utils::errors::MappedErrors,
};
use shaku::Interface;
#[async_trait]
pub trait MessageSending: Interface + Send + Sync {
async fn send(
&self,
message: MessageDTO,
) -> Result<CreateResponseKind<MessageDTO>, MappedErrors>;
}