#[non_exhaustive]pub struct Requirements {
pub approval: bool,
pub verification: bool,
pub no_automatic_retry: bool,
}Expand description
What a policy demands of an effect. Requirements only ever accumulate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.approval: boolA human must approve the effect before its first attempt.
verification: boolThe effect must be verifiable; one that is not is refused before anything is recorded.
no_automatic_retry: boolThe runtime must not retry or re-run the effect on its own.
Implementations§
Source§impl Requirements
impl Requirements
Trait Implementations§
Source§impl Clone for Requirements
impl Clone for Requirements
impl Copy for Requirements
Source§impl Debug for Requirements
impl Debug for Requirements
Source§impl Default for Requirements
impl Default for Requirements
impl Eq for Requirements
Source§impl PartialEq for Requirements
impl PartialEq for Requirements
impl StructuralPartialEq for Requirements
Auto Trait Implementations§
impl Freeze for Requirements
impl RefUnwindSafe for Requirements
impl Send for Requirements
impl Sync for Requirements
impl Unpin for Requirements
impl UnsafeUnpin for Requirements
impl UnwindSafe for Requirements
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