pub struct KubernetesPodRuntimeUnitStatus {Show 13 fields
pub containers: Vec<ContainerImageIdentity>,
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": {
"containers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ContainerImageIdentity"
}
},
"cpu": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/MetricSample"
}
]
}
]
},
"memory": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$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§
§containers: Vec<ContainerImageIdentity>§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<'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