#[non_exhaustive]pub struct CreateRunGroupInput {
pub name: Option<String>,
pub max_cpus: Option<i32>,
pub max_runs: Option<i32>,
pub max_duration: Option<i32>,
pub tags: Option<HashMap<String, String>>,
pub request_id: Option<String>,
pub max_gpus: Option<i32>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>A name for the group.
max_cpus: Option<i32>The maximum number of CPUs that can run concurrently across all active runs in the run group.
max_runs: Option<i32>The maximum number of runs that can be running at the same time.
max_duration: Option<i32>The maximum time for each run (in minutes). If a run exceeds the maximum run time, the run fails automatically.
Tags for the group.
request_id: Option<String>To ensure that requests don't run multiple times, specify a unique ID for each request.
max_gpus: Option<i32>The maximum number of GPUs that can run concurrently across all active runs in the run group.
Implementations§
source§impl CreateRunGroupInput
impl CreateRunGroupInput
sourcepub fn max_cpus(&self) -> Option<i32>
pub fn max_cpus(&self) -> Option<i32>
The maximum number of CPUs that can run concurrently across all active runs in the run group.
sourcepub fn max_runs(&self) -> Option<i32>
pub fn max_runs(&self) -> Option<i32>
The maximum number of runs that can be running at the same time.
sourcepub fn max_duration(&self) -> Option<i32>
pub fn max_duration(&self) -> Option<i32>
The maximum time for each run (in minutes). If a run exceeds the maximum run time, the run fails automatically.
Tags for the group.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
To ensure that requests don't run multiple times, specify a unique ID for each request.
source§impl CreateRunGroupInput
impl CreateRunGroupInput
sourcepub fn builder() -> CreateRunGroupInputBuilder
pub fn builder() -> CreateRunGroupInputBuilder
Creates a new builder-style object to manufacture CreateRunGroupInput.
Trait Implementations§
source§impl Clone for CreateRunGroupInput
impl Clone for CreateRunGroupInput
source§fn clone(&self) -> CreateRunGroupInput
fn clone(&self) -> CreateRunGroupInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateRunGroupInput
impl Debug for CreateRunGroupInput
source§impl PartialEq for CreateRunGroupInput
impl PartialEq for CreateRunGroupInput
impl StructuralPartialEq for CreateRunGroupInput
Auto Trait Implementations§
impl Freeze for CreateRunGroupInput
impl RefUnwindSafe for CreateRunGroupInput
impl Send for CreateRunGroupInput
impl Sync for CreateRunGroupInput
impl Unpin for CreateRunGroupInput
impl UnwindSafe for CreateRunGroupInput
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more