pub struct RuleEntry {
pub pattern: EndpointPattern,
pub filter: AclRuleFilter,
}Expand description
Rule entry for providers: endpoint pattern + filter.
Fields§
§pattern: EndpointPatternThe endpoint pattern.
filter: AclRuleFilterThe filter for this endpoint.
Implementations§
Source§impl RuleEntry
impl RuleEntry
Sourcepub fn new(pattern: EndpointPattern, filter: AclRuleFilter) -> Self
pub fn new(pattern: EndpointPattern, filter: AclRuleFilter) -> Self
Create a new rule entry.
Sourcepub fn exact(endpoint: impl Into<String>, filter: AclRuleFilter) -> Self
pub fn exact(endpoint: impl Into<String>, filter: AclRuleFilter) -> Self
Create an exact endpoint rule.
Sourcepub fn prefix(prefix: impl Into<String>, filter: AclRuleFilter) -> Self
pub fn prefix(prefix: impl Into<String>, filter: AclRuleFilter) -> Self
Create a prefix endpoint rule.
Sourcepub fn glob(glob: impl Into<String>, filter: AclRuleFilter) -> Self
pub fn glob(glob: impl Into<String>, filter: AclRuleFilter) -> Self
Create a glob endpoint rule.
Sourcepub fn any(filter: AclRuleFilter) -> Self
pub fn any(filter: AclRuleFilter) -> Self
Create an any endpoint rule.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleEntry
impl RefUnwindSafe for RuleEntry
impl Send for RuleEntry
impl Sync for RuleEntry
impl Unpin for RuleEntry
impl UnwindSafe for RuleEntry
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