pub struct PreflightConfig {
pub strict: bool,
}Expand description
Top-level preflight: block.
Fields§
§strict: boolPromote INDETERMINATE preflight outcomes to hard blockers. An
indeterminate outcome is one where a probe could not reach a verdict —
a 5xx, a 429 / rate-limit, a transport failure, or a response that
hides the permission the publish path needs. By default those degrade
to warnings so a transient upstream blip cannot abort a release whose
credentials are actually valid; strict: true makes them abort
instead (fail-closed). Definitive failures (credentials rejected,
target missing) keep their required→blocker / optional→warning
severity regardless of this setting. Equivalent to passing the
global --strict on every run.
Trait Implementations§
Source§impl Clone for PreflightConfig
impl Clone for PreflightConfig
Source§fn clone(&self) -> PreflightConfig
fn clone(&self) -> PreflightConfig
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 PreflightConfig
impl Debug for PreflightConfig
Source§impl Default for PreflightConfig
impl Default for PreflightConfig
Source§fn default() -> PreflightConfig
fn default() -> PreflightConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreflightConfigwhere
PreflightConfig: Default,
impl<'de> Deserialize<'de> for PreflightConfigwhere
PreflightConfig: Default,
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
impl Eq for PreflightConfig
Source§impl JsonSchema for PreflightConfig
impl JsonSchema for PreflightConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PreflightConfig
impl PartialEq for PreflightConfig
Source§impl Serialize for PreflightConfig
impl Serialize for PreflightConfig
impl StructuralPartialEq for PreflightConfig
Auto Trait Implementations§
impl Freeze for PreflightConfig
impl RefUnwindSafe for PreflightConfig
impl Send for PreflightConfig
impl Sync for PreflightConfig
impl Unpin for PreflightConfig
impl UnsafeUnpin for PreflightConfig
impl UnwindSafe for PreflightConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.