print_table_basic

Function print_table_basic 

Source
pub fn print_table_basic(data: PrintableData)
Expand description

This function allows to print the objects details in a pretty way (basic data).

It uses the prettytable library to print the version details.

§Arguments

  • data - A TablePrintable enum
    • Project: A vector of Project structs
    • Version: A vector of Version structs
    • IssueType: A vector of IssueType structs
    • IssueTypeFields: A vector of IssueTypeFields structs

§Examples

use jira_v3_openapi::models::Version;
use jirust_cli::utils::{PrintableData, table_printer::print_table_basic};

let versions: Vec<Version> = vec![Version::new()];
print_table_basic(PrintableData::Version { versions });