pub struct CliTable {
pub tables: Vec<ParsedCliTable>,
pub platform_regex_rules: HashMap<String, Vec<CliTableRegexRule>>,
}Expand description
A high-level interface for command-to-template mapping using index files.
Fields§
§tables: Vec<ParsedCliTable>List of parsed index tables.
platform_regex_rules: HashMap<String, Vec<CliTableRegexRule>>Map of platform names to their associated regex rules for command matching.
Implementations§
Source§impl CliTable
impl CliTable
Sourcepub fn get_template_for_command(
&self,
platform: &str,
cmd: &str,
) -> Option<(String, CliTableRow)>
pub fn get_template_for_command( &self, platform: &str, cmd: &str, ) -> Option<(String, CliTableRow)>
Finds the appropriate template and row information for a given platform and command.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliTable
impl RefUnwindSafe for CliTable
impl Send for CliTable
impl Sync for CliTable
impl Unpin for CliTable
impl UnwindSafe for CliTable
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