pub struct PolicyRule {
pub action_pattern: String,
pub decision: PolicyDecision,
}Expand description
A single rule inside a PolicyDocument.
Gated on alloc because action_pattern is a String.
Fields§
§action_pattern: StringGlob-style pattern matched against the action name or path.
decision: PolicyDecisionDecision to apply when the pattern matches.
Trait Implementations§
Source§impl Clone for PolicyRule
impl Clone for PolicyRule
Source§fn clone(&self) -> PolicyRule
fn clone(&self) -> PolicyRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolicyRule
impl Debug for PolicyRule
Source§impl PartialEq for PolicyRule
impl PartialEq for PolicyRule
Source§fn eq(&self, other: &PolicyRule) -> bool
fn eq(&self, other: &PolicyRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolicyRule
Auto Trait Implementations§
impl Freeze for PolicyRule
impl RefUnwindSafe for PolicyRule
impl Send for PolicyRule
impl Sync for PolicyRule
impl Unpin for PolicyRule
impl UnsafeUnpin for PolicyRule
impl UnwindSafe for PolicyRule
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