pub struct MacOSNativeNotarizeConfig {
pub profile_name: Option<String>,
pub wait: Option<bool>,
pub timeout: Option<HumanDuration>,
}Expand description
Native notarization configuration for xcrun notarytool.
Fields§
§profile_name: Option<String>Notarytool stored credentials profile name. Templates allowed.
wait: Option<bool>Whether to wait for notarization to complete.
timeout: Option<HumanDuration>Timeout for xcrun notarytool submit --timeout. Humantime-style
string (e.g. "10m", "15s", "1h").
Implementations§
Source§impl MacOSNativeNotarizeConfig
impl MacOSNativeNotarizeConfig
Sourcepub const DEFAULT_TIMEOUT: &'static str = "10m"
pub const DEFAULT_TIMEOUT: &'static str = "10m"
Default notarization wait window. Aligns with the cross-platform
rcodesign path (and GoReleaser macos.go’s 10 * time.Minute).
Sourcepub fn resolved_wait(&self) -> bool
pub fn resolved_wait(&self) -> bool
Resolve wait, falling back to false. The native xcrun path
prints a “submit only” message instead of polling when wait
is false; the unwrap at this accessor pins that fallback in one
place.
Sourcepub fn resolved_timeout(&self) -> String
pub fn resolved_timeout(&self) -> String
Resolve timeout as a humantime string, falling back to
Self::DEFAULT_TIMEOUT.
Trait Implementations§
Source§impl Clone for MacOSNativeNotarizeConfig
impl Clone for MacOSNativeNotarizeConfig
Source§fn clone(&self) -> MacOSNativeNotarizeConfig
fn clone(&self) -> MacOSNativeNotarizeConfig
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 MacOSNativeNotarizeConfig
impl Debug for MacOSNativeNotarizeConfig
Source§impl Default for MacOSNativeNotarizeConfig
impl Default for MacOSNativeNotarizeConfig
Source§fn default() -> MacOSNativeNotarizeConfig
fn default() -> MacOSNativeNotarizeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MacOSNativeNotarizeConfigwhere
MacOSNativeNotarizeConfig: Default,
impl<'de> Deserialize<'de> for MacOSNativeNotarizeConfigwhere
MacOSNativeNotarizeConfig: 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
Source§impl JsonSchema for MacOSNativeNotarizeConfig
impl JsonSchema for MacOSNativeNotarizeConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MacOSNativeNotarizeConfig
impl RefUnwindSafe for MacOSNativeNotarizeConfig
impl Send for MacOSNativeNotarizeConfig
impl Sync for MacOSNativeNotarizeConfig
impl Unpin for MacOSNativeNotarizeConfig
impl UnsafeUnpin for MacOSNativeNotarizeConfig
impl UnwindSafe for MacOSNativeNotarizeConfig
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