pub struct Bundle {
pub media_type: String,
pub verification_material: VerificationMaterial,
pub content: SignatureContent,
}Expand description
The main Sigstore bundle structure
Fields§
§media_type: StringMedia type identifying the bundle version
verification_material: VerificationMaterialVerification material (certificate chain or public key)
content: SignatureContentThe content being signed (message signature or DSSE envelope)
Implementations§
Source§impl Bundle
impl Bundle
Sourcepub fn from_json(json: &str) -> Result<Self>
pub fn from_json(json: &str) -> Result<Self>
Parse a bundle from JSON, preserving raw DSSE envelope for hash verification
Sourcepub fn to_json_pretty(&self) -> Result<String>
pub fn to_json_pretty(&self) -> Result<String>
Serialize the bundle to pretty-printed JSON
Sourcepub fn signing_certificate(&self) -> Option<&DerCertificate>
pub fn signing_certificate(&self) -> Option<&DerCertificate>
Get the signing certificate if present
Sourcepub fn has_inclusion_proof(&self) -> bool
pub fn has_inclusion_proof(&self) -> bool
Check if the bundle has an inclusion proof
Sourcepub fn has_inclusion_promise(&self) -> bool
pub fn has_inclusion_promise(&self) -> bool
Check if the bundle has an inclusion promise (SET)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bundle
impl<'de> Deserialize<'de> for Bundle
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 StructuralPartialEq for Bundle
Auto Trait Implementations§
impl Freeze for Bundle
impl RefUnwindSafe for Bundle
impl Send for Bundle
impl Sync for Bundle
impl Unpin for Bundle
impl UnsafeUnpin for Bundle
impl UnwindSafe for Bundle
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