pub struct R3ClientStartJobBuilder<'f1, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with call()
.
Implementations§
Source§impl<'f1, S: State> R3ClientStartJobBuilder<'f1, S>
impl<'f1, S: State> R3ClientStartJobBuilder<'f1, S>
Sourcepub fn call(self) -> Result<Response<ResponseData>, Box<dyn Error>>where
S: IsComplete,
pub fn call(self) -> Result<Response<ResponseData>, Box<dyn Error>>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn file_id(
self,
value: String,
) -> R3ClientStartJobBuilder<'f1, SetFileId<S>>where
S::FileId: IsUnset,
pub fn file_id(
self,
value: String,
) -> R3ClientStartJobBuilder<'f1, SetFileId<S>>where
S::FileId: IsUnset,
Required.
The ID of the script file to run.
Note that this needs to be an executable file.
Get a list of files using R3Client::get_files()
.
Sourcepub fn device_ids(
self,
value: Vec<String>,
) -> R3ClientStartJobBuilder<'f1, SetDeviceIds<S>>where
S::DeviceIds: IsUnset,
pub fn device_ids(
self,
value: Vec<String>,
) -> R3ClientStartJobBuilder<'f1, SetDeviceIds<S>>where
S::DeviceIds: IsUnset,
Required.
The IDs of the devices to run the script on.
Get a list of devices using R3Client::get_devices()
.
Sourcepub fn arguments(
self,
value: Vec<ArgumentInput>,
) -> R3ClientStartJobBuilder<'f1, SetArguments<S>>where
S::Arguments: IsUnset,
pub fn arguments(
self,
value: Vec<ArgumentInput>,
) -> R3ClientStartJobBuilder<'f1, SetArguments<S>>where
S::Arguments: IsUnset,
Sourcepub fn maybe_arguments(
self,
value: Option<Vec<ArgumentInput>>,
) -> R3ClientStartJobBuilder<'f1, SetArguments<S>>where
S::Arguments: IsUnset,
pub fn maybe_arguments(
self,
value: Option<Vec<ArgumentInput>>,
) -> R3ClientStartJobBuilder<'f1, SetArguments<S>>where
S::Arguments: IsUnset,
Auto Trait Implementations§
impl<'f1, S> Freeze for R3ClientStartJobBuilder<'f1, S>
impl<'f1, S> RefUnwindSafe for R3ClientStartJobBuilder<'f1, S>
impl<'f1, S> Send for R3ClientStartJobBuilder<'f1, S>
impl<'f1, S> Sync for R3ClientStartJobBuilder<'f1, S>
impl<'f1, S> Unpin for R3ClientStartJobBuilder<'f1, S>
impl<'f1, S> UnwindSafe for R3ClientStartJobBuilder<'f1, 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