pub struct MonitorWatchArgs {
pub every: Option<String>,
pub duration: Option<String>,
pub csv: Option<PathBuf>,
pub report: Option<PathBuf>,
pub preset: Option<String>,
pub save: Option<String>,
pub yes: bool,
pub dashboard: bool,
pub health: HealthArgs,
}Expand description
The options of the monitor wizard (#47). The wizard turns the monitor arguments into a watchlist; these set its timing, outputs and checks.
Fields§
§every: Option<String>Interval between runs, as a duration (30s, 5m). The same as
--refresh in seconds. Default: 60s.
duration: Option<String>How long the run lasts (10m, 1h, or forever). Default: 1h.
csv: Option<PathBuf>Write one CSV row per check per run to this path.
report: Option<PathBuf>Write the report to this path when the run ends or is stopped.
preset: Option<String>The checks: market-health (the default with --venue) or none.
save: Option<String>Save the watchlist under this name (watch open <name> runs it again).
yes: boolStart the run at once, without the wizard.
dashboard: boolOpen the old dashboard instead of the wizard. Deprecated: it goes in the next release.
health: HealthArgsHealth threshold overrides for the market health checks.
Trait Implementations§
Source§impl Args for MonitorWatchArgs
impl Args for MonitorWatchArgs
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 MonitorWatchArgs
impl Clone for MonitorWatchArgs
Source§impl Debug for MonitorWatchArgs
impl Debug for MonitorWatchArgs
Source§impl Default for MonitorWatchArgs
impl Default for MonitorWatchArgs
Source§impl FromArgMatches for MonitorWatchArgs
impl FromArgMatches for MonitorWatchArgs
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 MonitorWatchArgs
impl RefUnwindSafe for MonitorWatchArgs
impl Send for MonitorWatchArgs
impl Sync for MonitorWatchArgs
impl Unpin for MonitorWatchArgs
impl UnsafeUnpin for MonitorWatchArgs
impl UnwindSafe for MonitorWatchArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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