pub struct QueryArgs {
pub from: Option<String>,
pub to: Option<String>,
pub service: Option<String>,
pub level: Option<String>,
pub host: Option<String>,
pub keyword: Option<String>,
pub format: OutputFormat,
}Expand description
Arguments for obsidianlog query.
Fields§
§from: Option<String>Inclusive lower bound of the time range: RFC 3339, or relative to now
(e.g. 24h, 30m, 7d).
to: Option<String>Inclusive upper bound of the time range: RFC 3339, or relative to now
(e.g. 1h, 30m, 7d).
service: Option<String>Filter by service name.
level: Option<String>Filter by log level (e.g. info, warn, error).
host: Option<String>Filter by originating host.
keyword: Option<String>Free-text keyword to match within log lines.
format: OutputFormatOutput format for matched records.
Trait Implementations§
Source§impl Args for QueryArgs
impl Args for QueryArgs
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 FromArgMatches for QueryArgs
impl FromArgMatches for QueryArgs
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 QueryArgs
impl RefUnwindSafe for QueryArgs
impl Send for QueryArgs
impl Sync for QueryArgs
impl Unpin for QueryArgs
impl UnsafeUnpin for QueryArgs
impl UnwindSafe for QueryArgs
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