pub struct LogsArgs {
pub logger: Option<String>,
pub min_level: Option<LogLevel>,
pub since: Option<i64>,
pub limit: i64,
pub follow: bool,
pub interval: u64,
pub timeout: Option<u64>,
pub command: Option<LogsCmd>,
}Expand description
Logs args: the query filters ride the TOP level so bare
ign logs [-f] lists/tails (must-have truth #1) while download
and the loggers subtree hang off the optional subcommand — the
SessionsArgs precedent.
Fields§
§logger: Option<String>Only entries from this logger (name prefix)
min_level: Option<LogLevel>Minimum level to include (server-side filter)
since: Option<i64>Start from an absolute EPOCH-MS or a relative span (500ms, 30s, 5min, 2h) — parsed to epoch-ms at arg-parse time
limit: i64Max entries — the server default is UNLIMITED, never used here
follow: boolFollow: stream new entries as they occur (poll-based)
interval: u64Poll interval in seconds (follow mode)
timeout: Option<u64>Stop after this many seconds (follow mode; default: until Ctrl-C)
command: Option<LogsCmd>Trait Implementations§
Source§impl Args for LogsArgs
impl Args for LogsArgs
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 LogsArgs
impl FromArgMatches for LogsArgs
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 Forget for LogsArgs
impl Freeze for LogsArgs
impl Move for LogsArgs
impl RefUnwindSafe for LogsArgs
impl Send for LogsArgs
impl Sync for LogsArgs
impl Unpin for LogsArgs
impl UnsafeUnpin for LogsArgs
impl UnwindSafe for LogsArgs
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