pub struct Command {
pub ssh_key_path: String,
pub user_name: String,
pub region: String,
pub availability_zone: String,
pub instance_id: String,
pub instance_state: String,
pub ip_mode: String,
pub public_ip: String,
pub profile: Option<String>,
}
Fields§
§ssh_key_path: String
§user_name: String
§region: String
§availability_zone: String
§instance_id: String
§instance_state: String
§ip_mode: String
§public_ip: String
§profile: Option<String>
Implementations§
Source§impl Command
impl Command
pub fn ssm_start_session_command(&self) -> String
Sourcepub fn download_file(
&self,
remote_file_path: &str,
local_file_path: &str,
overwrite: bool,
) -> Result<Output>
pub fn download_file( &self, remote_file_path: &str, local_file_path: &str, overwrite: bool, ) -> Result<Output>
Downloads a remote file to the local machine.
Sourcepub fn send_file(
&self,
local_file_path: &str,
remote_file_path: &str,
overwrite: bool,
) -> Result<Output>
pub fn send_file( &self, local_file_path: &str, remote_file_path: &str, overwrite: bool, ) -> Result<Output>
Sends a local file to the remote machine.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Command
ref. https://doc.rust-lang.org/std/string/trait.ToString.html
ref. https://doc.rust-lang.org/std/fmt/trait.Display.html
Use “Self.to_string()” to directly invoke this.
impl Display for Command
ref. https://doc.rust-lang.org/std/string/trait.ToString.html ref. https://doc.rust-lang.org/std/fmt/trait.Display.html Use “Self.to_string()” to directly invoke this.
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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