pub struct StatefulSetSpec {
pub pod_management_policy: Option<PodMangementPolicy>,
pub replicas: Option<u16>,
pub revision_history_limit: Option<u16>,
pub selector: LabelSelector,
pub service_name: String,
pub template: TemplateSpec<PodSpec>,
pub volume_claim_templates: Vec<TemplateSpec<PersistentVolumeClaim>>,
pub update_strategy: Option<StatefulSetUpdateStrategy>,
}
Fields§
§pod_management_policy: Option<PodMangementPolicy>
§replicas: Option<u16>
§revision_history_limit: Option<u16>
§selector: LabelSelector
§service_name: String
§template: TemplateSpec<PodSpec>
§volume_claim_templates: Vec<TemplateSpec<PersistentVolumeClaim>>
§update_strategy: Option<StatefulSetUpdateStrategy>
Trait Implementations§
Source§impl Clone for StatefulSetSpec
impl Clone for StatefulSetSpec
Source§fn clone(&self) -> StatefulSetSpec
fn clone(&self) -> StatefulSetSpec
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 StatefulSetSpec
impl Debug for StatefulSetSpec
Source§impl Default for StatefulSetSpec
impl Default for StatefulSetSpec
Source§fn default() -> StatefulSetSpec
fn default() -> StatefulSetSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatefulSetSpecwhere
StatefulSetSpec: Default,
impl<'de> Deserialize<'de> for StatefulSetSpecwhere
StatefulSetSpec: Default,
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 Serialize for StatefulSetSpec
impl Serialize for StatefulSetSpec
Auto Trait Implementations§
impl Freeze for StatefulSetSpec
impl RefUnwindSafe for StatefulSetSpec
impl Send for StatefulSetSpec
impl Sync for StatefulSetSpec
impl Unpin for StatefulSetSpec
impl UnwindSafe for StatefulSetSpec
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