pub struct HintContext {Show 16 fields
pub source: HintSource,
pub dir: Option<String>,
pub glob: Vec<String>,
pub format: Option<String>,
pub hints: bool,
pub fields: Vec<String>,
pub sort: Option<String>,
pub has_limit: bool,
pub has_body_search: bool,
pub has_regex_search: bool,
pub property_filters: Vec<String>,
pub tag_filters: Vec<String>,
pub task_filter: Option<String>,
pub file_targets: Vec<String>,
pub dry_run: bool,
pub index_path: Option<String>,
}Expand description
Global flags to propagate into generated hint commands.
Each Option field is Some only when the user passed the flag explicitly
on the CLI. Values that came from .hyalo.toml config are omitted so that
the copy-pasted hint command inherits the same config automatically.
Fields§
§source: HintSource§dir: Option<String>None means “.” (default) or came from config — omit from hints.
glob: Vec<String>§format: Option<String>Explicit --format from CLI (not from config).
hints: boolExplicit --hints from CLI (not from config).
fields: Vec<String>§sort: Option<String>§has_limit: bool§has_body_search: bool§has_regex_search: bool§property_filters: Vec<String>§tag_filters: Vec<String>§task_filter: Option<String>§file_targets: Vec<String>§dry_run: bool§index_path: Option<String>Implementations§
Source§impl HintContext
impl HintContext
pub fn new(source: HintSource) -> Self
Auto Trait Implementations§
impl Freeze for HintContext
impl RefUnwindSafe for HintContext
impl Send for HintContext
impl Sync for HintContext
impl Unpin for HintContext
impl UnsafeUnpin for HintContext
impl UnwindSafe for HintContext
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more