pub struct StartArgs {
pub config: Option<PathBuf>,
pub provider: Option<String>,
pub upstream_url: Option<String>,
pub api_key: Option<String>,
pub listen: Option<String>,
pub log_dir: PathBuf,
pub log_body: bool,
}Expand description
Start the proxy server.
Fields§
§config: Option<PathBuf>Config file path.
provider: Option<String>Provider name (glm, kimi, deepseek, minimax).
upstream_url: Option<String>Upstream URL.
api_key: Option<String>API key for the upstream provider.
listen: Option<String>Listen address.
log_dir: PathBufLog directory.
log_body: boolLog request/response bodies.
Implementations§
Source§impl StartArgs
impl StartArgs
Sourcepub fn to_proxy_config(&self) -> Result<ProxyConfig>
pub fn to_proxy_config(&self) -> Result<ProxyConfig>
Build ProxyConfig from arguments.
Trait Implementations§
Source§impl Args for StartArgs
impl Args for StartArgs
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 StartArgs
impl FromArgMatches for StartArgs
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 StartArgs
impl RefUnwindSafe for StartArgs
impl Send for StartArgs
impl Sync for StartArgs
impl Unpin for StartArgs
impl UnsafeUnpin for StartArgs
impl UnwindSafe for StartArgs
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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