Struct k8s_openapi::api::autoscaling::v2::ObjectMetricStatus
source · [−]pub struct ObjectMetricStatus {
pub current: MetricValueStatus,
pub described_object: CrossVersionObjectReference,
pub metric: MetricIdentifier,
}
Expand description
ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
Fields
current: MetricValueStatus
current contains the current value for the given metric
described_object: CrossVersionObjectReference
DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
metric: MetricIdentifier
metric identifies the target metric by name and selector
Trait Implementations
sourceimpl Clone for ObjectMetricStatus
impl Clone for ObjectMetricStatus
sourcefn clone(&self) -> ObjectMetricStatus
fn clone(&self) -> ObjectMetricStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ObjectMetricStatus
impl Debug for ObjectMetricStatus
sourceimpl Default for ObjectMetricStatus
impl Default for ObjectMetricStatus
sourcefn default() -> ObjectMetricStatus
fn default() -> ObjectMetricStatus
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ObjectMetricStatus
impl<'de> Deserialize<'de> for ObjectMetricStatus
sourcefn 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
sourceimpl PartialEq<ObjectMetricStatus> for ObjectMetricStatus
impl PartialEq<ObjectMetricStatus> for ObjectMetricStatus
sourcefn eq(&self, other: &ObjectMetricStatus) -> bool
fn eq(&self, other: &ObjectMetricStatus) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjectMetricStatus) -> bool
fn ne(&self, other: &ObjectMetricStatus) -> bool
This method tests for !=
.
sourceimpl Serialize for ObjectMetricStatus
impl Serialize for ObjectMetricStatus
impl StructuralPartialEq for ObjectMetricStatus
Auto Trait Implementations
impl RefUnwindSafe for ObjectMetricStatus
impl Send for ObjectMetricStatus
impl Sync for ObjectMetricStatus
impl Unpin for ObjectMetricStatus
impl UnwindSafe for ObjectMetricStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more