#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Build {
#[prost(string, tag = "1")]
pub builder_version: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub signature: ::core::option::Option<BuildSignature>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BuildSignature {
#[prost(string, tag = "1")]
pub public_key: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub signature: ::prost::bytes::Bytes,
#[prost(string, tag = "3")]
pub key_id: ::prost::alloc::string::String,
#[prost(enumeration = "build_signature::KeyType", tag = "4")]
pub key_type: i32,
}
pub mod build_signature {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum KeyType {
Unspecified = 0,
PgpAsciiArmored = 1,
PkixPem = 2,
}
impl KeyType {
pub fn as_str_name(&self) -> &'static str {
match self {
KeyType::Unspecified => "KEY_TYPE_UNSPECIFIED",
KeyType::PgpAsciiArmored => "PGP_ASCII_ARMORED",
KeyType::PkixPem => "PKIX_PEM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"KEY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"PGP_ASCII_ARMORED" => Some(Self::PgpAsciiArmored),
"PKIX_PEM" => Some(Self::PkixPem),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Details {
#[prost(message, optional, tag = "1")]
pub provenance: ::core::option::Option<super::provenance::BuildProvenance>,
#[prost(string, tag = "2")]
pub provenance_bytes: ::prost::alloc::string::String,
}