pub enum PolicyAction {
Allow,
Deny,
Ask,
Shadow,
}Variants§
Allow
Deny
Ask
Suspend on a human gate; the answer decides. Rides the same deferred
path ask_human and the human node already use, so a policy gate
renders as an answerable row in every attached client and survives a
restart.
Shadow
Refuse, but say plainly that the call was held rather than run. NOT a synthetic success: a schema-conformant fake result is reasoned over as real, and every later decision is then built on a fabricated observation — a strange thing for a fail-closed runtime to ship.
Trait Implementations§
Source§impl Clone for PolicyAction
impl Clone for PolicyAction
Source§fn clone(&self) -> PolicyAction
fn clone(&self) -> PolicyAction
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 moreimpl Copy for PolicyAction
Source§impl Debug for PolicyAction
impl Debug for PolicyAction
Source§impl Default for PolicyAction
impl Default for PolicyAction
Source§fn default() -> PolicyAction
fn default() -> PolicyAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyAction
impl<'de> Deserialize<'de> for PolicyAction
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 PolicyAction
Source§impl PartialEq for PolicyAction
impl PartialEq for PolicyAction
impl StructuralPartialEq for PolicyAction
Auto Trait Implementations§
impl Freeze for PolicyAction
impl RefUnwindSafe for PolicyAction
impl Send for PolicyAction
impl Sync for PolicyAction
impl Unpin for PolicyAction
impl UnsafeUnpin for PolicyAction
impl UnwindSafe for PolicyAction
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