pub struct BindKeyArgs {
pub(crate) id: String,
pub(crate) keys_file: Option<PathBuf>,
pub(crate) this_machine: bool,
pub(crate) machines: Option<String>,
pub(crate) replace: bool,
pub(crate) clear: bool,
pub(crate) freeze: bool,
}Fields§
§id: String要编辑的 key id
keys_file: Option<PathBuf>keys.json 路径。默认(按 OS):macOS ~/Library/Application Support/futu/keys.json / Linux ~/.config/futu/keys.json / Windows %APPDATA%/futu/keys.json
this_machine: bool追加本机指纹
machines: Option<String>追加指定指纹,逗号分隔的 64 位 hex
replace: bool替换模式:用新指纹覆盖整个白名单(默认是追加)
clear: bool清除绑定:把 allowed_machines 置为 None(等同于未启用绑定)
freeze: bool冻结:把 allowed_machines 置为 [](任何机器都不过)
Trait Implementations§
Source§impl Args for BindKeyArgs
impl Args for BindKeyArgs
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 BindKeyArgs
impl FromArgMatches for BindKeyArgs
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 BindKeyArgs
impl RefUnwindSafe for BindKeyArgs
impl Send for BindKeyArgs
impl Sync for BindKeyArgs
impl Unpin for BindKeyArgs
impl UnsafeUnpin for BindKeyArgs
impl UnwindSafe for BindKeyArgs
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