pub struct CreateTerminalRequest {
pub session_id: SessionId,
pub command: String,
pub args: Vec<String>,
pub env: Vec<EnvVariable>,
pub cwd: Option<PathBuf>,
pub output_byte_limit: Option<u64>,
pub meta: Option<Value>,
}
Expand description
Request to create a new terminal and execute a command.
Fields§
§session_id: SessionId
The session ID for this request.
command: String
The command to execute.
args: Vec<String>
Array of command arguments.
env: Vec<EnvVariable>
Environment variables for the command.
cwd: Option<PathBuf>
Working directory for the command (absolute path).
output_byte_limit: Option<u64>
Maximum number of output bytes to retain.
When the limit is exceeded, the Client truncates from the beginning of the output to stay within the limit.
The Client MUST ensure truncation happens at a character boundary to maintain valid string output, even if this means the retained output is slightly less than the specified limit.
meta: Option<Value>
Extension point for implementations
Trait Implementations§
Source§impl Clone for CreateTerminalRequest
impl Clone for CreateTerminalRequest
Source§fn clone(&self) -> CreateTerminalRequest
fn clone(&self) -> CreateTerminalRequest
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 CreateTerminalRequest
impl Debug for CreateTerminalRequest
Source§impl<'de> Deserialize<'de> for CreateTerminalRequest
impl<'de> Deserialize<'de> for CreateTerminalRequest
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 JsonSchema for CreateTerminalRequest
impl JsonSchema for CreateTerminalRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for CreateTerminalRequest
impl RefUnwindSafe for CreateTerminalRequest
impl Send for CreateTerminalRequest
impl Sync for CreateTerminalRequest
impl Unpin for CreateTerminalRequest
impl UnwindSafe for CreateTerminalRequest
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