Struct k8s_openapi::api::flowcontrol::v1::NonResourcePolicyRule
source · pub struct NonResourcePolicyRule {
pub non_resource_urls: Vec<String>,
pub verbs: Vec<String>,
}
Expand description
NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
Fields§
§non_resource_urls: Vec<String>
nonResourceURLs
is a set of url prefixes that a user should have access to and may not be empty. For example:
- “/healthz” is legal
- “/hea*” is illegal
- “/hea” is legal but matches nothing
- “/hea/*” also matches nothing
- “/healthz/” matches all per-component health checks. “” matches all non-resource urls. if it is present, it must be the only entry. Required.
verbs: Vec<String>
verbs
is a list of matching verbs and may not be empty. “*” matches all verbs. If it is present, it must be the only entry. Required.
Trait Implementations§
source§impl Clone for NonResourcePolicyRule
impl Clone for NonResourcePolicyRule
source§fn clone(&self) -> NonResourcePolicyRule
fn clone(&self) -> NonResourcePolicyRule
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 NonResourcePolicyRule
impl Debug for NonResourcePolicyRule
source§impl DeepMerge for NonResourcePolicyRule
impl DeepMerge for NonResourcePolicyRule
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for NonResourcePolicyRule
impl Default for NonResourcePolicyRule
source§fn default() -> NonResourcePolicyRule
fn default() -> NonResourcePolicyRule
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NonResourcePolicyRule
impl<'de> Deserialize<'de> for NonResourcePolicyRule
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 NonResourcePolicyRule
impl PartialEq for NonResourcePolicyRule
source§fn eq(&self, other: &NonResourcePolicyRule) -> bool
fn eq(&self, other: &NonResourcePolicyRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NonResourcePolicyRule
impl Serialize for NonResourcePolicyRule
impl StructuralPartialEq for NonResourcePolicyRule
Auto Trait Implementations§
impl Freeze for NonResourcePolicyRule
impl RefUnwindSafe for NonResourcePolicyRule
impl Send for NonResourcePolicyRule
impl Sync for NonResourcePolicyRule
impl Unpin for NonResourcePolicyRule
impl UnwindSafe for NonResourcePolicyRule
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