pub struct DoctorArgs {
pub(crate) rest_url: Option<String>,
pub(crate) rest_port: Option<u16>,
pub(crate) api_key: Option<String>,
pub(crate) symbol: Option<String>,
pub(crate) bundle: Option<PathBuf>,
pub(crate) no_update_check: bool,
pub(crate) update_url: Option<String>,
pub(crate) update_timeout_ms: u64,
}Fields§
§rest_url: Option<String>目标 REST 端点 URL(默认从 FUTU_REST_URL 环境变量读,或 http://127.0.0.1:22222)
rest_port: Option<u16>REST/MCP 风格用户习惯指定 port,自动转 http://127.0.0.1:
api_key: Option<String>带 Bearer Token(scope 模式下建议使用 admin + qot:read + metrics:read scope)
symbol: Option<String>可选 MARKET.CODE;提供后 doctor 会额外查询 market-state 和 quote-capability 辅助判断闭市、开市断流、行情权限或静态缓存问题
bundle: Option<PathBuf>写出脱敏诊断包到指定目录(不存在则创建)
no_update_check: bool不检查公开 version.json;适合离线或严格内网环境
update_url: Option<String>version.json URL;默认读 FUTU_UPDATE_CHECK_URL,未设置则用 https://futuapi.com/version.json
update_timeout_ms: u64更新检查 HTTP 超时,单位毫秒
Trait Implementations§
Source§impl Args for DoctorArgs
impl Args for DoctorArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
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
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for DoctorArgs
impl FromArgMatches for DoctorArgs
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 DoctorArgs
impl RefUnwindSafe for DoctorArgs
impl Send for DoctorArgs
impl Sync for DoctorArgs
impl Unpin for DoctorArgs
impl UnsafeUnpin for DoctorArgs
impl UnwindSafe for DoctorArgs
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