pub enum Action<T = String> {
Any,
Typed(T),
}Expand description
Represents an action used in an allow rule.
When the action is bound to a concrete value (e.g. a string) this returns an
Action::Typed. If any actions are allowed, then the Action::Any variant is
returned. By default, the type of the action is a String.
Variants§
Trait Implementations§
Source§impl<T: FromPolar> FromPolar for Action<T>
impl<T: FromPolar> FromPolar for Action<T>
fn from_polar(val: PolarValue) -> Result<Self>
impl<T: Eq> Eq for Action<T>
impl<T> StructuralPartialEq for Action<T>
Auto Trait Implementations§
impl<T> Freeze for Action<T>where
T: Freeze,
impl<T> RefUnwindSafe for Action<T>where
T: RefUnwindSafe,
impl<T> Send for Action<T>where
T: Send,
impl<T> Sync for Action<T>where
T: Sync,
impl<T> Unpin for Action<T>where
T: Unpin,
impl<T> UnwindSafe for Action<T>where
T: UnwindSafe,
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