Struct k8s_openapi::api::resource::v1alpha2::NamedResourcesRequest
source · pub struct NamedResourcesRequest {
pub selector: String,
}
Expand description
NamedResourcesRequest is used in ResourceRequestModel.
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 NamedResourcesRequest
impl Clone for NamedResourcesRequest
source§fn clone(&self) -> NamedResourcesRequest
fn clone(&self) -> NamedResourcesRequest
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 NamedResourcesRequest
impl Debug for NamedResourcesRequest
source§impl DeepMerge for NamedResourcesRequest
impl DeepMerge for NamedResourcesRequest
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for NamedResourcesRequest
impl Default for NamedResourcesRequest
source§fn default() -> NamedResourcesRequest
fn default() -> NamedResourcesRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NamedResourcesRequest
impl<'de> Deserialize<'de> for NamedResourcesRequest
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 NamedResourcesRequest
impl PartialEq for NamedResourcesRequest
source§fn eq(&self, other: &NamedResourcesRequest) -> bool
fn eq(&self, other: &NamedResourcesRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NamedResourcesRequest
impl Serialize for NamedResourcesRequest
impl StructuralPartialEq for NamedResourcesRequest
Auto Trait Implementations§
impl Freeze for NamedResourcesRequest
impl RefUnwindSafe for NamedResourcesRequest
impl Send for NamedResourcesRequest
impl Sync for NamedResourcesRequest
impl Unpin for NamedResourcesRequest
impl UnwindSafe for NamedResourcesRequest
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