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 for JobTemplateSpec
impl PartialEq for JobTemplateSpec
Source§impl Serialize for JobTemplateSpec
impl Serialize for JobTemplateSpec
impl StructuralPartialEq for JobTemplateSpec
Auto Trait Implementations§
impl Freeze for JobTemplateSpec
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