pub enum ActionPattern {
Read,
Write,
Delete,
Destructive,
Any,
}Expand description
One entry of a rule’s actions list: a concrete Action name or
the "*" wildcard covering every action.
Deserializes from the lowercase action names ("read", "write",
"delete", "destructive") or "*". The Destructive pattern
matches both Action::Delete and Action::Destructive (delete
implies destructive); every other named pattern matches exactly its
own action.
Variants§
Read
Matches Action::Read only.
Write
Matches Action::Write only.
Delete
Matches Action::Delete only.
Destructive
Matches Action::Delete and Action::Destructive.
Any
"*" — matches every action.
Implementations§
Trait Implementations§
Source§impl Clone for ActionPattern
impl Clone for ActionPattern
impl Copy for ActionPattern
Source§impl Debug for ActionPattern
impl Debug for ActionPattern
Source§impl<'de> Deserialize<'de> for ActionPattern
impl<'de> Deserialize<'de> for ActionPattern
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
impl Eq for ActionPattern
Source§impl PartialEq for ActionPattern
impl PartialEq for ActionPattern
Source§impl Serialize for ActionPattern
impl Serialize for ActionPattern
impl StructuralPartialEq for ActionPattern
Auto Trait Implementations§
impl Freeze for ActionPattern
impl RefUnwindSafe for ActionPattern
impl Send for ActionPattern
impl Sync for ActionPattern
impl Unpin for ActionPattern
impl UnsafeUnpin for ActionPattern
impl UnwindSafe for ActionPattern
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