pub struct RunDefaults {
pub shell: Option<String>,
pub working_directory: Option<String>,
}
Expand description
Represents default settings for running commands.
Fields§
§shell: Option<String>
The shell to use for running commands.
working_directory: Option<String>
The working directory for running commands.
Implementations§
Source§impl RunDefaults
impl RunDefaults
Sourcepub fn working_directory(self, value: impl Into<String>) -> Self
pub fn working_directory(self, value: impl Into<String>) -> Self
Sets the working_directory
field of this struct.
Trait Implementations§
Source§impl Clone for RunDefaults
impl Clone for RunDefaults
Source§fn clone(&self) -> RunDefaults
fn clone(&self) -> RunDefaults
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 Debug for RunDefaults
impl Debug for RunDefaults
Source§impl Default for RunDefaults
impl Default for RunDefaults
Source§fn default() -> RunDefaults
fn default() -> RunDefaults
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunDefaults
impl<'de> Deserialize<'de> for RunDefaults
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 PartialEq for RunDefaults
impl PartialEq for RunDefaults
Source§impl Serialize for RunDefaults
impl Serialize for RunDefaults
impl Eq for RunDefaults
impl StructuralPartialEq for RunDefaults
Auto Trait Implementations§
impl Freeze for RunDefaults
impl RefUnwindSafe for RunDefaults
impl Send for RunDefaults
impl Sync for RunDefaults
impl Unpin for RunDefaults
impl UnwindSafe for RunDefaults
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.