pub struct KubernetesPodRuntimeUnitStatus {
pub cpu: Option<MetricSample>,
pub memory: Option<MetricSample>,
pub name: String,
pub node_name: Option<String>,
pub owner_references: Vec<KubernetesOwnerReference>,
pub phase: Option<String>,
pub pod_ip: Option<String>,
pub ready: bool,
pub restart_count: i32,
pub terminated_reason: Option<String>,
pub uid: Option<String>,
pub waiting_reason: Option<String>,
}Expand description
KubernetesPodRuntimeUnitStatus
JSON schema
{
"type": "object",
"required": [
"name",
"ownerReferences",
"ready",
"restartCount"
],
"properties": {
"cpu": {
"$ref": "#/components/schemas/MetricSample"
},
"memory": {
"$ref": "#/components/schemas/MetricSample"
},
"name": {
"type": "string"
},
"nodeName": {
"type": [
"string",
"null"
]
},
"ownerReferences": {
"type": "array",
"items": {
"$ref": "#/components/schemas/KubernetesOwnerReference"
}
},
"phase": {
"type": [
"string",
"null"
]
},
"podIp": {
"type": [
"string",
"null"
]
},
"ready": {
"type": "boolean"
},
"restartCount": {
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"terminatedReason": {
"type": [
"string",
"null"
]
},
"uid": {
"type": [
"string",
"null"
]
},
"waitingReason": {
"type": [
"string",
"null"
]
}
}
}Fields§
§cpu: Option<MetricSample>§memory: Option<MetricSample>§name: String§node_name: Option<String>§owner_references: Vec<KubernetesOwnerReference>§phase: Option<String>§pod_ip: Option<String>§ready: bool§restart_count: i32§terminated_reason: Option<String>§uid: Option<String>§waiting_reason: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for KubernetesPodRuntimeUnitStatus
impl Clone for KubernetesPodRuntimeUnitStatus
Source§fn clone(&self) -> KubernetesPodRuntimeUnitStatus
fn clone(&self) -> KubernetesPodRuntimeUnitStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for KubernetesPodRuntimeUnitStatus
impl<'de> Deserialize<'de> for KubernetesPodRuntimeUnitStatus
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 From<&KubernetesPodRuntimeUnitStatus> for KubernetesPodRuntimeUnitStatus
impl From<&KubernetesPodRuntimeUnitStatus> for KubernetesPodRuntimeUnitStatus
Source§fn from(value: &KubernetesPodRuntimeUnitStatus) -> Self
fn from(value: &KubernetesPodRuntimeUnitStatus) -> Self
Converts to this type from the input type.
Source§impl From<KubernetesPodRuntimeUnitStatus> for KubernetesPodRuntimeUnitStatus
impl From<KubernetesPodRuntimeUnitStatus> for KubernetesPodRuntimeUnitStatus
Source§fn from(value: KubernetesPodRuntimeUnitStatus) -> Self
fn from(value: KubernetesPodRuntimeUnitStatus) -> Self
Converts to this type from the input type.
Source§impl TryFrom<KubernetesPodRuntimeUnitStatus> for KubernetesPodRuntimeUnitStatus
impl TryFrom<KubernetesPodRuntimeUnitStatus> for KubernetesPodRuntimeUnitStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: KubernetesPodRuntimeUnitStatus,
) -> Result<Self, ConversionError>
fn try_from( value: KubernetesPodRuntimeUnitStatus, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for KubernetesPodRuntimeUnitStatus
impl RefUnwindSafe for KubernetesPodRuntimeUnitStatus
impl Send for KubernetesPodRuntimeUnitStatus
impl Sync for KubernetesPodRuntimeUnitStatus
impl Unpin for KubernetesPodRuntimeUnitStatus
impl UnsafeUnpin for KubernetesPodRuntimeUnitStatus
impl UnwindSafe for KubernetesPodRuntimeUnitStatus
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