#[non_exhaustive]pub enum SignatureFormat {
OpenPgpArmored,
OpenPgpBinary,
Cms,
SigstoreBundle,
Empty,
TooLarge,
Unknown,
}Expand description
The container a detached signature appears to use.
Experimental: may change in a 0.x minor release.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OpenPgpArmored
OpenPGP ASCII armor (-----BEGIN PGP SIGNATURE-----).
OpenPgpBinary
A binary OpenPGP signature packet (tag 2, version 3 to 6).
Cms
DER CMS ContentInfo whose content type is SignedData
(OID 1.2.840.113549.1.7.2).
SigstoreBundle
A JSON object whose mediaType starts with
application/vnd.dev.sigstore.bundle.
Empty
No bytes.
TooLarge
More than MAX_SIGNATURE_INSPECT_BYTES; not inspected.
Unknown
None of the above.
Implementations§
Trait Implementations§
Source§impl Clone for SignatureFormat
impl Clone for SignatureFormat
Source§fn clone(&self) -> SignatureFormat
fn clone(&self) -> SignatureFormat
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 moreimpl Copy for SignatureFormat
Source§impl Debug for SignatureFormat
impl Debug for SignatureFormat
impl Eq for SignatureFormat
Source§impl Hash for SignatureFormat
impl Hash for SignatureFormat
Source§impl PartialEq for SignatureFormat
impl PartialEq for SignatureFormat
impl StructuralPartialEq for SignatureFormat
Auto Trait Implementations§
impl Forget for SignatureFormat
impl Freeze for SignatureFormat
impl Move for SignatureFormat
impl RefUnwindSafe for SignatureFormat
impl Send for SignatureFormat
impl Sync for SignatureFormat
impl Unpin for SignatureFormat
impl UnsafeUnpin for SignatureFormat
impl UnwindSafe for SignatureFormat
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