pub struct ResultSet {
pub filename: String,
pub extension: String,
pub selected: Option<Vec<String>>,
pub sheets: Vec<String>,
pub keys: Vec<String>,
pub num_rows: usize,
pub data: SpreadData,
pub out_ref: Option<String>,
pub opts: OptionSet,
}Fields§
§filename: String§extension: String§selected: Option<Vec<String>>§sheets: Vec<String>§keys: Vec<String>§num_rows: usize§data: SpreadData§out_ref: Option<String>§opts: OptionSetImplementations§
Source§impl ResultSet
impl ResultSet
Sourcepub fn new(
info: &WorkbookInfo,
keys: &[String],
data_set: DataSet,
opts: &OptionSet,
out_ref: Option<&str>,
) -> Self
pub fn new( info: &WorkbookInfo, keys: &[String], data_set: DataSet, opts: &OptionSet, out_ref: Option<&str>, ) -> Self
Instantiate with Core workbook info, header keys, data set and optional output reference
pub fn from_multiple( sheets: &[SheetDataSet], info: &WorkbookInfo, opts: &OptionSet, ) -> Self
pub fn multimode(&self) -> bool
Sourcepub fn to_json(&self) -> Value
pub fn to_json(&self) -> Value
Full result set as JSON with criteria, options and data in synchronous mode
Sourcepub fn to_output_lines(&self, json_lines: bool) -> Vec<String>
pub fn to_output_lines(&self, json_lines: bool) -> Vec<String>
Full result set as CLI-friendly lines
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultSet
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnwindSafe for ResultSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more