pub struct Args {Show 14 fields
pub command: Commands,
pub host: String,
pub ip_from: IpFrom,
pub rscript: OsString,
pub quarto: OsString,
pub log_file: Option<PathBuf>,
pub max_log_file_size: Option<u64>,
pub shutdown: Shutdown,
pub max_message_size: Option<u64>,
pub pg_con_string: Option<String>,
pub pg_sslcert: Option<PathBuf>,
pub pg_sslmode: PgSslMode,
pub telemetry_namespace: String,
pub telemetry_version: Option<String>,
}Expand description
███████╗ █████╗ ██╗ ██╗ ██████╗███████╗████████╗ ██╔════╝██╔══██╗██║ ██║██╔════╝██╔════╝╚══██╔══╝ █████╗ ███████║██║ ██║██║ █████╗ ██║ ██╔══╝ ██╔══██║██║ ██║██║ ██╔══╝ ██║ ██║ ██║ ██║╚██████╔╝╚██████╗███████╗ ██║ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚══════╝ ╚═╝ Fast, async, and concurrent data applications.
Fields§
§command: Commands§host: StringThe host to bind to.
ip_from: IpFromThe IP address to extract from. Defaults to client address.
rscript: OsStringCommand, path, or executable to run Rscript.
quarto: OsStringCommand, path, or executable to run quarto.
log_file: Option<PathBuf>Save logs to a file. Will disable colors!
max_log_file_size: Option<u64>The maximum size of the log file. (Ex. 10M, 1GB)
shutdown: ShutdownThe strategy for shutting down faucet
max_message_size: Option<u64>Maximum size of a WebSocket message. This is useful for DDOS prevention. Not set means no size limit.
pg_con_string: Option<String>Connection string to a PostgreSQL database for saving HTTP events.
pg_sslcert: Option<PathBuf>Path to CA certificate for PostgreSQL SSL/TLS.
pg_sslmode: PgSslModeSSL mode for PostgreSQL connection (disable, prefer, require, verify-ca, verify-full).
telemetry_namespace: StringSave HTTP events on PostgreSQL under a specific namespace.
telemetry_version: Option<String>Represents the source code version of the service to run. This is useful for telemetry.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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.