INNER CODE UNIT · Rust
build_specs
databricks/click · src/command/mod.rs:254
pub fn build_specs<'a, T, F>(
cols: &[&str],
list: &'a List<T>,
extractors: Option<&HashMap<String, Extractor<T>>>,
include_index: bool,
regex: Option<Regex>,
get_kobj: F,
) -> Vec<(KObj, RowSpec<'a>)>
where
T: 'a + ListableResource + Metadata<Ty = ObjectMeta>,
F: Fn(&T) -> KObj,
{
let mut ret = vec![];
for item in list.items.iter() {
let mut row: Vec<CellSpec> = if include_index {
vec![CellSpec::new_index()]
} else {
vec![]