pub fn player_vector_response(players: &Vec<Player>) -> tide::Result {
    let mut response = Response::new(StatusCode::Ok);
    response.set_content_type(mime::JSON);
    response.set_body(Body::from_json(&players)?);
    Ok(response)
}
/// Builds a tide::Result from a vector of Players.
///
/// The Response has the status-code 200 and contains a json serialization
/// of all Players contained in the parameter.
Builds a tide::Result from a vector of Players.
The Response has the status-code 200 and contains a json serialization
of all Players contained in the parameter.
Builds a tide :: Result from a vector of Players . The Response has the status - code 200 and contains a json serialization of all Players contained in the parameter .
pub fn player_vector_response(players: &Vec<Player>) -> tide::Result {
    let mut response = Response::new(StatusCode::Ok);
    response.set_content_type(mime::JSON);
    response.set_body(Body::from_json(&players)?);
    Ok(response)
}
pub fn player_vector_response ( players : & Vec < Player > ) -> tide :: Result { let mut response = Response :: new ( StatusCode :: Ok ) ; response . set_content_type ( mime :: JSON ) ; response . set_body ( Body :: from_json ( & players ) ? ) ; Ok ( response ) }
Builds a tide::Result from a vector of Players.
Builds a tide :: Result from a vector of Players .
players
&Vec<Player>
players
&Vec<Player>