use cruding_core::Crudable;
use serde::{Deserialize, Serialize};
pub trait CrudableAxum: Crudable + Serialize + for<'de> Deserialize<'de>
where
<Self as Crudable>::Pkey: From<<Self as CrudableAxum>::PkeyDe>,
{
type PkeyDe: for<'de> Deserialize<'de> + Send;
}
pub trait ColumnParse: std::str::FromStr + Send + Sync + 'static {}
impl<T: std::str::FromStr + Send + Sync + 'static> ColumnParse for T {}
pub type ReqCtx<AxumCtx, InnerCtx> = (AxumCtx, InnerCtx);