Struct k8s_openapi::api::apps::v1::ReplicaSet
source · pub struct ReplicaSet {
pub metadata: ObjectMeta,
pub spec: Option<ReplicaSetSpec>,
pub status: Option<ReplicaSetStatus>,
}
Expand description
ReplicaSet ensures that a specified number of pod replicas are running at any given time.
Fields§
§metadata: ObjectMeta
If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<ReplicaSetSpec>
Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status: Option<ReplicaSetStatus>
Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Trait Implementations§
source§impl Clone for ReplicaSet
impl Clone for ReplicaSet
source§fn clone(&self) -> ReplicaSet
fn clone(&self) -> ReplicaSet
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReplicaSet
impl Debug for ReplicaSet
source§impl DeepMerge for ReplicaSet
impl DeepMerge for ReplicaSet
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ReplicaSet
impl Default for ReplicaSet
source§fn default() -> ReplicaSet
fn default() -> ReplicaSet
source§impl<'de> Deserialize<'de> for ReplicaSet
impl<'de> Deserialize<'de> for ReplicaSet
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>,
source§impl ListableResource for ReplicaSet
impl ListableResource for ReplicaSet
source§impl Metadata for ReplicaSet
impl Metadata for ReplicaSet
source§impl PartialEq for ReplicaSet
impl PartialEq for ReplicaSet
source§impl Resource for ReplicaSet
impl Resource for ReplicaSet
source§const API_VERSION: &'static str = "apps/v1"
const API_VERSION: &'static str = "apps/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moresource§const GROUP: &'static str = "apps"
const GROUP: &'static str = "apps"
source§const URL_PATH_SEGMENT: &'static str = "replicasets"
const URL_PATH_SEGMENT: &'static str = "replicasets"
source§type Scope = NamespaceResourceScope
type Scope = NamespaceResourceScope
source§impl Serialize for ReplicaSet
impl Serialize for ReplicaSet
impl StructuralPartialEq for ReplicaSet
Auto Trait Implementations§
impl Freeze for ReplicaSet
impl RefUnwindSafe for ReplicaSet
impl Send for ReplicaSet
impl Sync for ReplicaSet
impl Unpin for ReplicaSet
impl UnwindSafe for ReplicaSet
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)