Struct k8s_openapi::api::resource::v1alpha2::NamedResourcesFilter
source · pub struct NamedResourcesFilter {
pub selector: String,
}
Expand description
NamedResourcesFilter is used in ResourceFilterModel.
Fields§
§selector: String
Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
attributes.quantity[“a”].isGreaterThan(quantity(“0”)) && attributes.stringslice[“b”].isSorted()
Trait Implementations§
source§impl Clone for NamedResourcesFilter
impl Clone for NamedResourcesFilter
source§fn clone(&self) -> NamedResourcesFilter
fn clone(&self) -> NamedResourcesFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NamedResourcesFilter
impl Debug for NamedResourcesFilter
source§impl DeepMerge for NamedResourcesFilter
impl DeepMerge for NamedResourcesFilter
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for NamedResourcesFilter
impl Default for NamedResourcesFilter
source§fn default() -> NamedResourcesFilter
fn default() -> NamedResourcesFilter
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NamedResourcesFilter
impl<'de> Deserialize<'de> for NamedResourcesFilter
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 PartialEq for NamedResourcesFilter
impl PartialEq for NamedResourcesFilter
source§fn eq(&self, other: &NamedResourcesFilter) -> bool
fn eq(&self, other: &NamedResourcesFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NamedResourcesFilter
impl Serialize for NamedResourcesFilter
impl StructuralPartialEq for NamedResourcesFilter
Auto Trait Implementations§
impl Freeze for NamedResourcesFilter
impl RefUnwindSafe for NamedResourcesFilter
impl Send for NamedResourcesFilter
impl Sync for NamedResourcesFilter
impl Unpin for NamedResourcesFilter
impl UnwindSafe for NamedResourcesFilter
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