pub enum PolicyOverride {
Enabled(bool),
Detailed {
enabled: bool,
params: Value,
},
}Expand description
One entry in policies.overrides: either a bare boolean toggle or a
detailed object carrying typed parameters.
params stays an opaque serde_json::Value here; the owning policy
deserializes it into its own input type in the runner, not in this crate.
Variants§
Enabled(bool)
Shorthand: true/false toggles the policy with default parameters.
Detailed
Full form: explicit enablement plus opaque parameters.
Trait Implementations§
Source§impl Clone for PolicyOverride
impl Clone for PolicyOverride
Source§fn clone(&self) -> PolicyOverride
fn clone(&self) -> PolicyOverride
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 PolicyOverride
impl Debug for PolicyOverride
Source§impl<'de> Deserialize<'de> for PolicyOverride
impl<'de> Deserialize<'de> for PolicyOverride
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
Auto Trait Implementations§
impl Freeze for PolicyOverride
impl RefUnwindSafe for PolicyOverride
impl Send for PolicyOverride
impl Sync for PolicyOverride
impl Unpin for PolicyOverride
impl UnsafeUnpin for PolicyOverride
impl UnwindSafe for PolicyOverride
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