#[non_exhaustive]pub struct BatchComputeResources {
pub executors_count: i32,
pub max_executors_count: i32,
/* private fields */
}Expand description
Batch compute resources associated with the task.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.executors_count: i32Optional. Total number of job executors. Executor Count should be between 2 and 100. [Default=2]
max_executors_count: i32Optional. Max configurable executors. If max_executors_count > executors_count, then auto-scaling is enabled. Max Executor Count should be between 2 and 1000. [Default=1000]
Implementations§
Source§impl BatchComputeResources
impl BatchComputeResources
pub fn new() -> Self
Sourcepub fn set_executors_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_executors_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of executors_count.
Sourcepub fn set_max_executors_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_executors_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_executors_count.
Trait Implementations§
Source§impl Clone for BatchComputeResources
impl Clone for BatchComputeResources
Source§fn clone(&self) -> BatchComputeResources
fn clone(&self) -> BatchComputeResources
Returns a duplicate 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 BatchComputeResources
impl Debug for BatchComputeResources
Source§impl Default for BatchComputeResources
impl Default for BatchComputeResources
Source§fn default() -> BatchComputeResources
fn default() -> BatchComputeResources
Returns the “default value” for a type. Read more
Source§impl Message for BatchComputeResources
impl Message for BatchComputeResources
Source§impl PartialEq for BatchComputeResources
impl PartialEq for BatchComputeResources
impl StructuralPartialEq for BatchComputeResources
Auto Trait Implementations§
impl Freeze for BatchComputeResources
impl RefUnwindSafe for BatchComputeResources
impl Send for BatchComputeResources
impl Sync for BatchComputeResources
impl Unpin for BatchComputeResources
impl UnwindSafe for BatchComputeResources
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