pub struct RunInTerminalRequestArguments {
pub kind: Option<TerminalKind>,
pub title: Option<String>,
pub cwd: String,
pub args: Vec<String>,
pub env: HashMap<String, Option<String>>,
/* private fields */
}
Fields§
§kind: Option<TerminalKind>
What kind of terminal to launch.
title: Option<String>
Optional title of the terminal.
cwd: String
Working directory for the command. For non-empty, valid paths this typically results in execution of a change directory command.
args: Vec<String>
List of arguments. The first argument is the command to run.
env: HashMap<String, Option<String>>
Environment key-value pairs that are added to or removed from the default environment.
Implementations§
Source§impl RunInTerminalRequestArguments
impl RunInTerminalRequestArguments
Sourcepub fn builder() -> RunInTerminalRequestArgumentsBuilder<((), (), (), (), ())>
pub fn builder() -> RunInTerminalRequestArgumentsBuilder<((), (), (), (), ())>
Create a builder for building RunInTerminalRequestArguments
.
On the builder, call .kind(...)
(optional), .title(...)
(optional), .cwd(...)
, .args(...)
, .env(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RunInTerminalRequestArguments
.
Trait Implementations§
Source§impl Clone for RunInTerminalRequestArguments
impl Clone for RunInTerminalRequestArguments
Source§fn clone(&self) -> RunInTerminalRequestArguments
fn clone(&self) -> RunInTerminalRequestArguments
Returns a copy 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<'de> Deserialize<'de> for RunInTerminalRequestArguments
impl<'de> Deserialize<'de> for RunInTerminalRequestArguments
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 From<RunInTerminalRequestArguments> for ProtocolMessageContent
impl From<RunInTerminalRequestArguments> for ProtocolMessageContent
Source§fn from(args: RunInTerminalRequestArguments) -> Self
fn from(args: RunInTerminalRequestArguments) -> Self
Converts to this type from the input type.
Source§impl From<RunInTerminalRequestArguments> for Request
impl From<RunInTerminalRequestArguments> for Request
Source§fn from(args: RunInTerminalRequestArguments) -> Self
fn from(args: RunInTerminalRequestArguments) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RunInTerminalRequestArguments
impl PartialEq for RunInTerminalRequestArguments
Source§fn eq(&self, other: &RunInTerminalRequestArguments) -> bool
fn eq(&self, other: &RunInTerminalRequestArguments) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for RunInTerminalRequestArguments
impl StructuralPartialEq for RunInTerminalRequestArguments
Auto Trait Implementations§
impl Freeze for RunInTerminalRequestArguments
impl RefUnwindSafe for RunInTerminalRequestArguments
impl Send for RunInTerminalRequestArguments
impl Sync for RunInTerminalRequestArguments
impl Unpin for RunInTerminalRequestArguments
impl UnwindSafe for RunInTerminalRequestArguments
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.