pub struct AgentRequest {
pub id: String,
pub request_type: RequestType,
pub command: Option<Vec<String>>,
pub cwd: Option<String>,
pub env: Option<HashMap<String, String>>,
pub path: Option<String>,
pub content_base64: Option<String>,
pub recursive: Option<bool>,
pub session_id: Option<String>,
pub rows: Option<u16>,
pub cols: Option<u16>,
pub input_base64: Option<String>,
}Expand description
Request sent from host to guest
Fields§
§id: StringUnique request ID
request_type: RequestTypeRequest type
command: Option<Vec<String>>Command to run (for Run type)
cwd: Option<String>Working directory
env: Option<HashMap<String, String>>Environment variables
path: Option<String>File path (for file operations)
content_base64: Option<String>File content as base64 (for WriteFile)
recursive: Option<bool>Whether to create parent directories (for Mkdir)
session_id: Option<String>Session ID (for ShellInput, ShellResize, ShellClose)
rows: Option<u16>Terminal rows (for Shell, ShellResize)
cols: Option<u16>Terminal columns (for Shell, ShellResize)
input_base64: Option<String>Input data as base64 (for ShellInput)
Trait Implementations§
Source§impl Clone for AgentRequest
impl Clone for AgentRequest
Source§fn clone(&self) -> AgentRequest
fn clone(&self) -> AgentRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentRequest
impl Debug for AgentRequest
Source§impl<'de> Deserialize<'de> for AgentRequest
impl<'de> Deserialize<'de> for AgentRequest
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
Auto Trait Implementations§
impl Freeze for AgentRequest
impl RefUnwindSafe for AgentRequest
impl Send for AgentRequest
impl Sync for AgentRequest
impl Unpin for AgentRequest
impl UnsafeUnpin for AgentRequest
impl UnwindSafe for AgentRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more