use std::collections::HashSet;
use crate::entity::prelude::Sort;
impl<A, B> From<Sort<A>> for entertainarr_domain::prelude::Sort<B>
where
A: Into<B>,
{
fn from(value: Sort<A>) -> Self {
Self {
field: value.field.into(),
order: value.order.into(),
}
}
}
pub(crate) trait FromDomainResponse<Response, Include> {
fn from_response(response: Response, required: HashSet<Include>) -> Self;
}