pub struct CallerLimits {
pub max_step_count: Option<usize>,
pub max_env_count: Option<usize>,
pub max_task_count: Option<u64>,
pub max_step_script_size: Option<usize>,
pub max_environment_size: Option<usize>,
pub max_template_size: Option<usize>,
}Expand description
Caller-provided limits that layer on top of spec-defined limits.
These allow a service or application to impose additional restrictions
beyond what the OpenJD specification requires. All fields are optional —
None means “no additional restriction beyond the spec-defined limit.”
Caller limits can only add restrictions, never relax spec-defined ones.
Fields§
§max_step_count: Option<usize>Maximum number of steps in a job template.
max_env_count: Option<usize>Maximum number of environments (job + all step environments combined) in a job template.
max_task_count: Option<u64>Maximum total task count across all steps in a job template.
Checked after parameter space ranges are resolved in create_job.
max_step_script_size: Option<usize>Maximum JSON-encoded size of a step script, in bytes.
max_environment_size: Option<usize>Maximum JSON-encoded size of an environment, in bytes.
max_template_size: Option<usize>Maximum total template document size, in bytes.
Trait Implementations§
Source§impl Clone for CallerLimits
impl Clone for CallerLimits
Source§fn clone(&self) -> CallerLimits
fn clone(&self) -> CallerLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CallerLimits
impl Debug for CallerLimits
Source§impl Default for CallerLimits
impl Default for CallerLimits
Source§fn default() -> CallerLimits
fn default() -> CallerLimits
Auto Trait Implementations§
impl Freeze for CallerLimits
impl RefUnwindSafe for CallerLimits
impl Send for CallerLimits
impl Sync for CallerLimits
impl Unpin for CallerLimits
impl UnsafeUnpin for CallerLimits
impl UnwindSafe for CallerLimits
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§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