pub struct GatePolicy {
pub min_phase: Option<PhaseId>,
pub fail_on_pending_fixups: bool,
pub max_phase_age: Option<Duration>,
}Expand description
Gate policy for spec validation
Defines the rules that a spec must meet to pass the gate.
Fields§
§min_phase: Option<PhaseId>Minimum phase that must be completed
fail_on_pending_fixups: boolFail if any pending fixups exist
max_phase_age: Option<Duration>Maximum age of the latest successful phase
Trait Implementations§
Source§impl Clone for GatePolicy
impl Clone for GatePolicy
Source§fn clone(&self) -> GatePolicy
fn clone(&self) -> GatePolicy
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 GatePolicy
impl Debug for GatePolicy
Source§impl Default for GatePolicy
impl Default for GatePolicy
Source§fn default() -> GatePolicy
fn default() -> GatePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GatePolicy
impl<'de> Deserialize<'de> for GatePolicy
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 GatePolicy
impl RefUnwindSafe for GatePolicy
impl Send for GatePolicy
impl Sync for GatePolicy
impl Unpin for GatePolicy
impl UnsafeUnpin for GatePolicy
impl UnwindSafe for GatePolicy
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