Struct k8s_openapi::api::autoscaling::v2::MetricIdentifier
source · [−]pub struct MetricIdentifier {
pub name: String,
pub selector: Option<LabelSelector>,
}
Expand description
MetricIdentifier defines the name and optionally selector for a metric
Fields
name: String
name is the name of the given metric
selector: Option<LabelSelector>
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.
Trait Implementations
sourceimpl Clone for MetricIdentifier
impl Clone for MetricIdentifier
sourcefn clone(&self) -> MetricIdentifier
fn clone(&self) -> MetricIdentifier
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 MetricIdentifier
impl Debug for MetricIdentifier
sourceimpl Default for MetricIdentifier
impl Default for MetricIdentifier
sourcefn default() -> MetricIdentifier
fn default() -> MetricIdentifier
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for MetricIdentifier
impl<'de> Deserialize<'de> for MetricIdentifier
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<MetricIdentifier> for MetricIdentifier
impl PartialEq<MetricIdentifier> for MetricIdentifier
sourcefn eq(&self, other: &MetricIdentifier) -> bool
fn eq(&self, other: &MetricIdentifier) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MetricIdentifier) -> bool
fn ne(&self, other: &MetricIdentifier) -> bool
This method tests for !=
.
sourceimpl Serialize for MetricIdentifier
impl Serialize for MetricIdentifier
impl StructuralPartialEq for MetricIdentifier
Auto Trait Implementations
impl RefUnwindSafe for MetricIdentifier
impl Send for MetricIdentifier
impl Sync for MetricIdentifier
impl Unpin for MetricIdentifier
impl UnwindSafe for MetricIdentifier
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