pub struct RunCommandBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> RunCommandBuilder<S>
impl<S: State> RunCommandBuilder<S>
Sourcepub fn build(self) -> RunCommandwhere
S: IsComplete,
pub fn build(self) -> RunCommandwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn data(self, value: String) -> RunCommandBuilder<SetData<S>>where
S::Data: IsUnset,
pub fn data(self, value: String) -> RunCommandBuilder<SetData<S>>where
S::Data: IsUnset,
Sourcepub fn maybe_data(self, value: Option<String>) -> RunCommandBuilder<SetData<S>>where
S::Data: IsUnset,
pub fn maybe_data(self, value: Option<String>) -> RunCommandBuilder<SetData<S>>where
S::Data: IsUnset,
Sourcepub fn cmdline(self, value: String) -> RunCommandBuilder<SetCmdline<S>>where
S::Cmdline: IsUnset,
pub fn cmdline(self, value: String) -> RunCommandBuilder<SetCmdline<S>>where
S::Cmdline: IsUnset,
Sourcepub fn maybe_cmdline(
self,
value: Option<String>,
) -> RunCommandBuilder<SetCmdline<S>>where
S::Cmdline: IsUnset,
pub fn maybe_cmdline(
self,
value: Option<String>,
) -> RunCommandBuilder<SetCmdline<S>>where
S::Cmdline: IsUnset,
Sourcepub fn env(self, value: Map<String, Value>) -> RunCommandBuilder<SetEnv<S>>where
S::Env: IsUnset,
pub fn env(self, value: Map<String, Value>) -> RunCommandBuilder<SetEnv<S>>where
S::Env: IsUnset,
Sourcepub fn maybe_env(
self,
value: Option<Map<String, Value>>,
) -> RunCommandBuilder<SetEnv<S>>where
S::Env: IsUnset,
pub fn maybe_env(
self,
value: Option<Map<String, Value>>,
) -> RunCommandBuilder<SetEnv<S>>where
S::Env: IsUnset,
Sourcepub fn allow_remote_control(
self,
value: bool,
) -> RunCommandBuilder<SetAllowRemoteControl<S>>where
S::AllowRemoteControl: IsUnset,
pub fn allow_remote_control(
self,
value: bool,
) -> RunCommandBuilder<SetAllowRemoteControl<S>>where
S::AllowRemoteControl: IsUnset,
Sourcepub fn maybe_allow_remote_control(
self,
value: Option<bool>,
) -> RunCommandBuilder<SetAllowRemoteControl<S>>where
S::AllowRemoteControl: IsUnset,
pub fn maybe_allow_remote_control(
self,
value: Option<bool>,
) -> RunCommandBuilder<SetAllowRemoteControl<S>>where
S::AllowRemoteControl: IsUnset,
Sourcepub fn remote_control_password(
self,
value: String,
) -> RunCommandBuilder<SetRemoteControlPassword<S>>where
S::RemoteControlPassword: IsUnset,
pub fn remote_control_password(
self,
value: String,
) -> RunCommandBuilder<SetRemoteControlPassword<S>>where
S::RemoteControlPassword: IsUnset,
Sourcepub fn maybe_remote_control_password(
self,
value: Option<String>,
) -> RunCommandBuilder<SetRemoteControlPassword<S>>where
S::RemoteControlPassword: IsUnset,
pub fn maybe_remote_control_password(
self,
value: Option<String>,
) -> RunCommandBuilder<SetRemoteControlPassword<S>>where
S::RemoteControlPassword: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for RunCommandBuilder<S>
impl<S> RefUnwindSafe for RunCommandBuilder<S>
impl<S> Send for RunCommandBuilder<S>
impl<S> Sync for RunCommandBuilder<S>
impl<S> Unpin for RunCommandBuilder<S>
impl<S> UnwindSafe for RunCommandBuilder<S>
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