pub struct ResourcePattern {
pub resource_type: ResourceType,
pub name: String,
pub pattern_type: PatternType,
}Expand description
Represents a pattern that ACLs use to match resources.
Fields§
§resource_type: ResourceType§name: String§pattern_type: PatternTypeImplementations§
Source§impl ResourcePattern
impl ResourcePattern
pub const WILDCARD_RESOURCE: &'static str = "*"
pub fn new( resource_type: ResourceType, name: impl Into<String>, pattern_type: PatternType, ) -> Self
pub fn to_filter(&self) -> ResourcePatternFilter
Trait Implementations§
Source§impl Clone for ResourcePattern
impl Clone for ResourcePattern
Source§fn clone(&self) -> ResourcePattern
fn clone(&self) -> ResourcePattern
Returns a duplicate 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 ResourcePattern
impl Debug for ResourcePattern
Source§impl PartialEq for ResourcePattern
impl PartialEq for ResourcePattern
impl Eq for ResourcePattern
impl StructuralPartialEq for ResourcePattern
Auto Trait Implementations§
impl Freeze for ResourcePattern
impl RefUnwindSafe for ResourcePattern
impl Send for ResourcePattern
impl Sync for ResourcePattern
impl Unpin for ResourcePattern
impl UnsafeUnpin for ResourcePattern
impl UnwindSafe for ResourcePattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.