into_table

Function into_table 

Source
pub fn into_table<T: Tablefy>(data: &Vec<T>) -> Table
Expand description

Function that turns a vector of Tablefy implementations into a full Table.

This Table comes from prettytable, any function supported by that crate will also work here.

let table = into_table(servers);
 
table.printstd();
let tablestr = format!("{}", table);