pub struct NfpmSignatureConfig {
pub key_file: Option<String>,
pub key_id: Option<String>,
pub key_passphrase: Option<String>,
pub key_name: Option<String>,
pub type_: Option<String>,
}Expand description
Unified signature configuration shared by nFPM (deb/rpm/apk) and SRPM
packages — SRPM’s surface is a strict subset, so a single struct covers
both. The legacy SRPM passphrase: key is accepted as a serde alias
for key_passphrase: so both spellings parse.
GR keeps three distinct signature types (NFPMRPMSignature,
NFPMDebSignature, NFPMAPKSignature) with overlapping but slightly
different fields. Anodizer’s union here avoids the 3-struct cascade
when 90% of fields overlap.
Fields§
§key_file: Option<String>Path to the signing key file.
key_id: Option<String>Key ID to use for signing.
key_passphrase: Option<String>Passphrase for the signing key. Falls back to NFPM_PASSPHRASE /
SRPM_PASSPHRASE env vars in their respective stages.
key_name: Option<String>Public key name for APK signatures (defaults to <maintainer email>.rsa.pub).
type_: Option<String>Signature type for deb packages: “origin”, “maint”, or “archive” (default: “origin”).
Trait Implementations§
Source§impl Clone for NfpmSignatureConfig
impl Clone for NfpmSignatureConfig
Source§fn clone(&self) -> NfpmSignatureConfig
fn clone(&self) -> NfpmSignatureConfig
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 NfpmSignatureConfig
impl Debug for NfpmSignatureConfig
Source§impl Default for NfpmSignatureConfig
impl Default for NfpmSignatureConfig
Source§fn default() -> NfpmSignatureConfig
fn default() -> NfpmSignatureConfig
Source§impl<'de> Deserialize<'de> for NfpmSignatureConfigwhere
NfpmSignatureConfig: Default,
impl<'de> Deserialize<'de> for NfpmSignatureConfigwhere
NfpmSignatureConfig: 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>,
Source§impl JsonSchema for NfpmSignatureConfig
impl JsonSchema for NfpmSignatureConfig
Source§fn schema_name() -> String
fn schema_name() -> String
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 is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more