pub fn convert_and_json<T, U>(source: T) -> impl Reply
where
    T: Into<U>,
    U: Serialize,
{
    let target: U = source.into();
    warp::reply::json(&target)
}
/// Util function that makes replying easier
Util function that makes replying easier
Util function that makes replying easier
pub fn convert_and_json<T, U>(source: T) -> impl Reply
where
    T: Into<U>,
    U: Serialize,
{
    let target: U = source.into();
    warp::reply::json(&target)
}
pub fn convert_and_json < T , U > ( source : T ) -> impl Reply where T : Into < U > , U : Serialize , { let target : U = source . into ( ) ; warp :: reply :: json ( & target ) }
Util function that makes replying easier
Util function that makes replying easier
source
T
source
T