pub enum ScpAction {
Upload {
all: bool,
hosts: Option<String>,
target: Vec<String>,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Download {
all: bool,
hosts: Option<String>,
target: Vec<String>,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
}Expand description
Actions of the scp subcommand (regular files only; no -r).
Directory trees use super::SftpAction (ssh-cli sftp … --recursive).
Variants§
Upload
Uploads a local file to the remote host (regular files only).
Fields
§
target: Vec<String>Paths: VPS LOCAL REMOTE, or VPS LOCAL... REMOTE_DIR (multi-file, one session),
or with --all/--hosts: LOCAL REMOTE (one file) or LOCAL... REMOTE_DIR (multi-file × fleet).
§
auth: SshAuthArgsSSH authentication overrides (password/key/passphrase).
Download
Downloads a remote file to the local host (regular files only).
Fields
§
target: Vec<String>Paths: VPS REMOTE LOCAL, or VPS REMOTE... LOCAL_DIR (multi-file, one session),
or with --all/--hosts: REMOTE LOCAL (prefix) or REMOTE... LOCAL_DIR (per-host subdirs).
§
auth: SshAuthArgsSSH authentication overrides (password/key/passphrase).
Trait Implementations§
Source§impl FromArgMatches for ScpAction
impl FromArgMatches for ScpAction
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for ScpAction
impl Subcommand for ScpAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ScpAction
impl RefUnwindSafe for ScpAction
impl Send for ScpAction
impl Sync for ScpAction
impl Unpin for ScpAction
impl UnsafeUnpin for ScpAction
impl UnwindSafe for ScpAction
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