Struct jormungandr::settings::CommandLine
source · pub struct CommandLine {
pub log_level: Option<LevelFilter>,
pub log_format: Option<LogFormat>,
pub log_output: Option<LogOutput>,
pub trace_collector_endpoint: Option<Url>,
pub rewards_report_all: bool,
pub rest_arguments: RestArguments,
pub jrpc_arguments: JRpcArguments,
pub start_arguments: StartArguments,
pub full_version: bool,
pub source_version: bool,
pub storage_check: bool,
}
Fields§
§log_level: Option<LevelFilter>
Set log messages minimum severity. If not configured anywhere, defaults to “info”.
log_format: Option<LogFormat>
Set format of the log emitted. Can be “json” or “plain”. If not configured anywhere, defaults to “plain”.
log_output: Option<LogOutput>
Set where the log will be emitted. Can be “stdout”, “stderr”, a file path preceeded by ‘@’ (e.g. @./jormungandr.log) or “journald” (linux with systemd only, must be enabled during compilation).
If not configured anywhere, defaults to “stderr”
trace_collector_endpoint: Option<Url>
Enable the OTLP trace data exporter and set the collector’s GRPC endpoint.
rewards_report_all: bool
report all the rewards in the reward distribution history
NOTE: this will slowdown the epoch transition computation and will add add a lot of items for in-memory operations, this is not recommended to set
rest_arguments: RestArguments
§jrpc_arguments: JRpcArguments
§start_arguments: StartArguments
§full_version: bool
display full version details (software version, source version, targets and compiler used)
source_version: bool
display the sources version, allowing to check the source’s hash used to compile this executable. this option is useful for scripting retrieving the logs of the version of this application.
storage_check: bool
Initialize the storage and exit, useful to check that the storage has been set up correctly.
Implementations§
source§impl CommandLine
impl CommandLine
Trait Implementations§
source§impl Args for CommandLine
impl Args for CommandLine
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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
source§impl CommandFactory for CommandLine
impl CommandFactory for CommandLine
source§impl Debug for CommandLine
impl Debug for CommandLine
source§impl FromArgMatches for CommandLine
impl FromArgMatches for CommandLine
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>
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>
ArgMatches
to self
.source§impl Parser for CommandLine
impl Parser for CommandLine
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os()
, return Err on error.§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Auto Trait Implementations§
impl RefUnwindSafe for CommandLine
impl Send for CommandLine
impl Sync for CommandLine
impl Unpin for CommandLine
impl UnwindSafe for CommandLine
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request