pub struct WrapperOverlay {
pub floor_effect: Option<Effect>,
pub clears_env: Option<bool>,
pub escalates_privilege: Option<bool>,
}Expand description
Overlay for a single wrapper — optional fields so unset values don’t clobber base values during merge.
Mirrors the CommandOverlay pattern: fields are Option so that
omitting a field in TOML preserves the base value instead of silently
resetting it to a serde default.
Fields§
§floor_effect: Option<Effect>Override floor_effect. None preserves the base value.
clears_env: Option<bool>Override clears_env. None preserves the base value.
escalates_privilege: Option<bool>Override escalates_privilege. None preserves the base value.
Trait Implementations§
Source§impl Clone for WrapperOverlay
impl Clone for WrapperOverlay
Source§fn clone(&self) -> WrapperOverlay
fn clone(&self) -> WrapperOverlay
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 WrapperOverlay
impl Debug for WrapperOverlay
Source§impl Default for WrapperOverlay
impl Default for WrapperOverlay
Source§fn default() -> WrapperOverlay
fn default() -> WrapperOverlay
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WrapperOverlay
impl<'de> Deserialize<'de> for WrapperOverlay
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 WrapperOverlay
impl RefUnwindSafe for WrapperOverlay
impl Send for WrapperOverlay
impl Sync for WrapperOverlay
impl Unpin for WrapperOverlay
impl UnsafeUnpin for WrapperOverlay
impl UnwindSafe for WrapperOverlay
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