pub fn convert_vector_and_json<T, U>(source: Vec<T>) -> impl Reply
where
    U: From<T>,
    U: Serialize,
{
    let target: Vec<U> = convert_vector(source);
    warp::reply::json(&target)
}
/// Converts a vector of T to a vector of U then converts the U vector to a JSON reply.
Converts a vector of T to a vector of U then converts the U vector to a JSON reply.
Converts a vector of T to a vector of U then converts the U vector to a JSON reply .
pub fn convert_vector_and_json<T, U>(source: Vec<T>) -> impl Reply
where
    U: From<T>,
    U: Serialize,
{
    let target: Vec<U> = convert_vector(source);
    warp::reply::json(&target)
}
pub fn convert_vector_and_json < T , U > ( source : Vec < T > ) -> impl Reply where U : From < T > , U : Serialize , { let target : Vec < U > = convert_vector ( source ) ; warp :: reply :: json ( & target ) }
Converts a vector of T to a vector of U then converts the U vector to a JSON reply.
Converts a vector of T to a vector of U then converts the U vector to a JSON reply .
source
Vec<T>
source
Vec<T>