pub struct FieldFlags {
pub config: Option<PathBuf>,
pub id: Option<String>,
pub title: Vec<String>,
pub text: Vec<String>,
pub group: Option<String>,
pub group_name: Option<String>,
pub date: Vec<String>,
pub filters: Vec<String>,
pub display: Vec<String>,
pub empty_values: Vec<String>,
pub format: Option<Format>,
pub sql: Option<String>,
}Expand description
Mapping overrides from the command line, applied on top of the config.
Fields§
§config: Option<PathBuf>Config file [default: ./leviathan.toml when present]
id: Option<String>Unique id field
title: Vec<String>Title field(s); first present wins
text: Vec<String>Searched text fields (default: every string)
group: Option<String>Group field for scoped search
group_name: Option<String>Human-readable group name field
date: Vec<String>Date field(s); first present wins
filters: Vec<String>Exact-match filter fields
display: Vec<String>Fields shown on result cards
empty_values: Vec<String>Placeholder values treated as missing
format: Option<Format>Input format
sql: Option<String>SQL query for SQLite sources
Implementations§
Trait Implementations§
Source§impl Args for FieldFlags
impl Args for FieldFlags
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for FieldFlags
impl Clone for FieldFlags
Source§impl Debug for FieldFlags
impl Debug for FieldFlags
Source§impl Default for FieldFlags
impl Default for FieldFlags
Source§impl FromArgMatches for FieldFlags
impl FromArgMatches for FieldFlags
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for FieldFlags
impl RefUnwindSafe for FieldFlags
impl Send for FieldFlags
impl Sync for FieldFlags
impl Unpin for FieldFlags
impl UnsafeUnpin for FieldFlags
impl UnwindSafe for FieldFlags
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