[−][src]Struct k8s_openapi::api::flowcontrol::v1alpha1::PolicyRulesWithSubjects
PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
Fields
non_resource_rules: Option<Vec<NonResourcePolicyRule>>
nonResourceRules
is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
resource_rules: Option<Vec<ResourcePolicyRule>>
resourceRules
is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of resourceRules
and nonResourceRules
has to be non-empty.
subjects: Vec<Subject>
subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
Trait Implementations
impl Clone for PolicyRulesWithSubjects
[src]
fn clone(&self) -> PolicyRulesWithSubjects
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PolicyRulesWithSubjects
[src]
impl Default for PolicyRulesWithSubjects
[src]
fn default() -> PolicyRulesWithSubjects
[src]
impl<'de> Deserialize<'de> for PolicyRulesWithSubjects
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<PolicyRulesWithSubjects> for PolicyRulesWithSubjects
[src]
fn eq(&self, other: &PolicyRulesWithSubjects) -> bool
[src]
fn ne(&self, other: &PolicyRulesWithSubjects) -> bool
[src]
impl Serialize for PolicyRulesWithSubjects
[src]
impl StructuralPartialEq for PolicyRulesWithSubjects
[src]
Auto Trait Implementations
impl RefUnwindSafe for PolicyRulesWithSubjects
impl Send for PolicyRulesWithSubjects
impl Sync for PolicyRulesWithSubjects
impl Unpin for PolicyRulesWithSubjects
impl UnwindSafe for PolicyRulesWithSubjects
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,