pub struct MacOSSignNotarizeConfig {
pub ids: Option<Vec<String>>,
pub skip: Option<StringOrBool>,
pub enabled: Option<StringOrBool>,
pub skip_inverts_enabled: bool,
pub sign: Option<MacOSSignConfig>,
pub notarize: Option<MacOSNotarizeApiConfig>,
}Expand description
Cross-platform macOS signing and notarization via rcodesign.
Fields§
§ids: Option<Vec<String>>Build IDs to filter. Default: project name.
skip: Option<StringOrBool>Skip this configuration. Accepts bool or template string.
Replaces the previous enabled: toggle with the canonical
skip: (inverted semantic) to align with every other publisher /
pipe in anodizer.
Back-compat: the upstream uses enabled: (opt-in, default false).
A YAML carrying enabled: is accepted via the wire-level
enabled: alias that inverts the bool — enabled: true becomes
skip: false, enabled: false becomes skip: true. The
canonical field at runtime is skip:.
enabled: Option<StringOrBool>Back-compat enabled: alias (opt-in, default false). Inverted into
Self::skip at deserialize time. Surfaced here purely so the
generated JSON schema documents the field — editors/IDEs validating
against the schema must recognize enabled: rather than flag it as
unknown. Always None at runtime (the deserializer folds it into
skip); runtime logic never reads it.
skip_inverts_enabled: booltrue when Self::skip holds a templated enabled: value that
must be rendered verbatim and have its truthiness NEGATED at
evaluation (a falsy enabled → skip). Bool / literal enabled:
values are inverted at parse time and leave this false. Not part of
the YAML surface — set only by the enabled:-alias deserializer.
sign: Option<MacOSSignConfig>Signing configuration (P12 certificate).
notarize: Option<MacOSNotarizeApiConfig>Notarization configuration (App Store Connect API key). Omit for sign-only.
Implementations§
Source§impl MacOSSignNotarizeConfig
impl MacOSSignNotarizeConfig
Sourcepub fn should_skip(
&self,
render: impl Fn(&str) -> Result<String>,
) -> Result<bool>
pub fn should_skip( &self, render: impl Fn(&str) -> Result<String>, ) -> Result<bool>
Whether this entry should be SKIPPED (not signed / notarized).
Renders the Self::skip template via render and applies the
inversion convention recorded in Self::skip_inverts_enabled:
when the value came from a templated enabled:, the rendered
truthiness is negated (a falsy enabled → skip). A render failure is
propagated as Err so callers FAIL CLOSED rather than silently
enabling a stage the operator meant to disable.
Trait Implementations§
Source§impl Clone for MacOSSignNotarizeConfig
impl Clone for MacOSSignNotarizeConfig
Source§fn clone(&self) -> MacOSSignNotarizeConfig
fn clone(&self) -> MacOSSignNotarizeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MacOSSignNotarizeConfig
impl Debug for MacOSSignNotarizeConfig
Source§impl Default for MacOSSignNotarizeConfig
impl Default for MacOSSignNotarizeConfig
Source§fn default() -> MacOSSignNotarizeConfig
fn default() -> MacOSSignNotarizeConfig
Source§impl<'de> Deserialize<'de> for MacOSSignNotarizeConfig
impl<'de> Deserialize<'de> for MacOSSignNotarizeConfig
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl JsonSchema for MacOSSignNotarizeConfig
impl JsonSchema for MacOSSignNotarizeConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more