Struct decthings_api::rpc::spawned::SpawnCommandForModelParams
source · pub struct SpawnCommandForModelParams<'a, S: AsRef<str>> {
pub model_id: &'a str,
pub execution_location: ExecutionLocation,
pub command: &'a str,
pub args: &'a [S],
pub options: Option<SpawnedCommandOptions<'a>>,
pub subscribe_to_events: Option<bool>,
}
Fields§
§model_id: &'a str
The model’s id.
execution_location: ExecutionLocation
Which launcher to use for running the command.
command: &'a str
Name of the command to run, without any arguments.
args: &'a [S]
Arguments to pass to the command
options: Option<SpawnedCommandOptions<'a>>
§subscribe_to_events: Option<bool>
If true, immediately subscribes you to events “stdout”, “stderr” and “exit” for the spawned command. Default: true.
Trait Implementations§
source§impl<'a, S: Clone + AsRef<str>> Clone for SpawnCommandForModelParams<'a, S>
impl<'a, S: Clone + AsRef<str>> Clone for SpawnCommandForModelParams<'a, S>
source§fn clone(&self) -> SpawnCommandForModelParams<'a, S>
fn clone(&self) -> SpawnCommandForModelParams<'a, S>
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 moreAuto Trait Implementations§
impl<'a, S> Freeze for SpawnCommandForModelParams<'a, S>
impl<'a, S> RefUnwindSafe for SpawnCommandForModelParams<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for SpawnCommandForModelParams<'a, S>where
S: Sync,
impl<'a, S> Sync for SpawnCommandForModelParams<'a, S>where
S: Sync,
impl<'a, S> Unpin for SpawnCommandForModelParams<'a, S>
impl<'a, S> UnwindSafe for SpawnCommandForModelParams<'a, S>where
S: RefUnwindSafe,
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