pub struct ServerArgs {Show 13 fields
pub local: <Local as ClapSerde>::Opt,
pub origin: <Origin as ClapSerde>::Opt,
pub registry: <Registry as ClapSerde>::Opt,
pub docs: <Docs as ClapSerde>::Opt,
pub proxy: <Proxy as ClapSerde>::Opt,
pub postgresql: <Postgresql as ClapSerde>::Opt,
pub s3: <S3 as ClapSerde>::Opt,
pub setup: <Setup as ClapSerde>::Opt,
pub oauth2: <OAuth2 as ClapSerde>::Opt,
pub toolchain: <Toolchain as ClapSerde>::Opt,
pub log_format: Option<LogFormat>,
pub log_level: Option<LogLevel>,
pub log_level_web_server: Option<LogLevel>,
}Expand description
Server configuration options
Fields§
§local: <Local as ClapSerde>::Opt§origin: <Origin as ClapSerde>::Opt§registry: <Registry as ClapSerde>::Opt§docs: <Docs as ClapSerde>::Opt§proxy: <Proxy as ClapSerde>::Opt§postgresql: <Postgresql as ClapSerde>::Opt§s3: <S3 as ClapSerde>::Opt§setup: <Setup as ClapSerde>::Opt§oauth2: <OAuth2 as ClapSerde>::Opt§toolchain: <Toolchain as ClapSerde>::Opt§log_format: Option<LogFormat>Log output format
log_level: Option<LogLevel>Log level
log_level_web_server: Option<LogLevel>Log level for web server
Trait Implementations§
Source§impl Args for ServerArgs
impl Args for ServerArgs
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 CommandFactory for ServerArgs
impl CommandFactory for ServerArgs
Source§impl Default for ServerArgs
impl Default for ServerArgs
Source§fn default() -> ServerArgs
fn default() -> ServerArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for ServerArgs
impl FromArgMatches for ServerArgs
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.Source§impl Parser for ServerArgs
impl Parser for ServerArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ServerArgs
impl RefUnwindSafe for ServerArgs
impl Send for ServerArgs
impl Sync for ServerArgs
impl Unpin for ServerArgs
impl UnsafeUnpin for ServerArgs
impl UnwindSafe for ServerArgs
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