pub struct GuardsConfig {
pub enabled: bool,
pub on_require_fail: OnRequireFail,
}Expand description
Configuration for guard (pre/post condition) evaluation.
Fields§
§enabled: boolWhether guard conditions are evaluated before/after migrations.
on_require_fail: OnRequireFailWhat to do when a precondition (-- waypoint:require) fails.
Trait Implementations§
Source§impl Clone for GuardsConfig
impl Clone for GuardsConfig
Source§fn clone(&self) -> GuardsConfig
fn clone(&self) -> GuardsConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 GuardsConfig
impl Debug for GuardsConfig
Auto Trait Implementations§
impl Freeze for GuardsConfig
impl RefUnwindSafe for GuardsConfig
impl Send for GuardsConfig
impl Sync for GuardsConfig
impl Unpin for GuardsConfig
impl UnsafeUnpin for GuardsConfig
impl UnwindSafe for GuardsConfig
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