pub struct NonResourceRule {
pub non_resource_urls: Option<Vec<String>>,
pub verbs: Vec<String>,
}
Expand description
NonResourceRule holds information that describes a rule for the non-resource
Fields§
§non_resource_urls: Option<Vec<String>>
NonResourceURLs is a set of partial urls that a user should have access to. s are allowed, but only as the full, final step in the path. “” means all.
verbs: Vec<String>
Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. “*” means all.
Trait Implementations§
Source§impl Clone for NonResourceRule
impl Clone for NonResourceRule
Source§fn clone(&self) -> NonResourceRule
fn clone(&self) -> NonResourceRule
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 NonResourceRule
impl Debug for NonResourceRule
Source§impl DeepMerge for NonResourceRule
impl DeepMerge for NonResourceRule
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for NonResourceRule
impl Default for NonResourceRule
Source§fn default() -> NonResourceRule
fn default() -> NonResourceRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NonResourceRule
impl<'de> Deserialize<'de> for NonResourceRule
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 NonResourceRule
impl PartialEq for NonResourceRule
Source§impl Serialize for NonResourceRule
impl Serialize for NonResourceRule
impl StructuralPartialEq for NonResourceRule
Auto Trait Implementations§
impl Freeze for NonResourceRule
impl RefUnwindSafe for NonResourceRule
impl Send for NonResourceRule
impl Sync for NonResourceRule
impl Unpin for NonResourceRule
impl UnwindSafe for NonResourceRule
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