Struct k8s_openapi::api::batch::v1::JobTemplateSpec
source · pub struct JobTemplateSpec {
pub metadata: Option<ObjectMeta>,
pub spec: Option<JobSpec>,
}
Expand description
JobTemplateSpec describes the data a Job should have when created from a template
Fields§
§metadata: Option<ObjectMeta>
Standard object’s metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<JobSpec>
Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Trait Implementations§
source§impl Clone for JobTemplateSpec
impl Clone for JobTemplateSpec
source§fn clone(&self) -> JobTemplateSpec
fn clone(&self) -> JobTemplateSpec
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 moresource§impl Debug for JobTemplateSpec
impl Debug for JobTemplateSpec
source§impl DeepMerge for JobTemplateSpec
impl DeepMerge for JobTemplateSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for JobTemplateSpec
impl Default for JobTemplateSpec
source§fn default() -> JobTemplateSpec
fn default() -> JobTemplateSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for JobTemplateSpec
impl<'de> Deserialize<'de> for JobTemplateSpec
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<JobTemplateSpec> for JobTemplateSpec
impl PartialEq<JobTemplateSpec> for JobTemplateSpec
source§fn eq(&self, other: &JobTemplateSpec) -> bool
fn eq(&self, other: &JobTemplateSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for JobTemplateSpec
impl Serialize for JobTemplateSpec
impl StructuralPartialEq for JobTemplateSpec
Auto Trait Implementations§
impl RefUnwindSafe for JobTemplateSpec
impl Send for JobTemplateSpec
impl Sync for JobTemplateSpec
impl Unpin for JobTemplateSpec
impl UnwindSafe for JobTemplateSpec
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