pub struct WorkloadSpec {
pub controller_ref: Option<TypedLocalObjectReference>,
pub pod_groups: Vec<PodGroup>,
}Expand description
WorkloadSpec defines the desired state of a Workload.
Fields§
§controller_ref: Option<TypedLocalObjectReference>ControllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. When set, it cannot be changed.
pod_groups: Vec<PodGroup>PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable.
Trait Implementations§
Source§impl Clone for WorkloadSpec
impl Clone for WorkloadSpec
Source§fn clone(&self) -> WorkloadSpec
fn clone(&self) -> WorkloadSpec
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 WorkloadSpec
impl Debug for WorkloadSpec
Source§impl DeepMerge for WorkloadSpec
impl DeepMerge for WorkloadSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.Source§impl Default for WorkloadSpec
impl Default for WorkloadSpec
Source§fn default() -> WorkloadSpec
fn default() -> WorkloadSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkloadSpec
impl<'de> Deserialize<'de> for WorkloadSpec
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 WorkloadSpec
impl PartialEq for WorkloadSpec
Source§impl Serialize for WorkloadSpec
impl Serialize for WorkloadSpec
impl StructuralPartialEq for WorkloadSpec
Auto Trait Implementations§
impl Freeze for WorkloadSpec
impl RefUnwindSafe for WorkloadSpec
impl Send for WorkloadSpec
impl Sync for WorkloadSpec
impl Unpin for WorkloadSpec
impl UnwindSafe for WorkloadSpec
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