pub enum CodeSigningCertificate {
Auto,
File(FileBasedCodeSigningCertificate),
SubjectName(SystemStore, String),
Sha1Thumbprint(SystemStore, String),
}
Expand description
Represents a code signing certificate used to sign binaries on Windows.
This only represents the location of the certificate. It is possible for instances to refer to entities that don’t exist.
Variants§
Auto
Select the best available signing certificate.
File(FileBasedCodeSigningCertificate)
An x509 certificate backed by a filesystem file.
SubjectName(SystemStore, String)
An x509 certificate specified by its subject name or substring thereof.
Sha1Thumbprint(SystemStore, String)
A certificate specified by its store and SHA-1 thumbprint.
This is the most reliable way to specify a certificate in the Windows certificate store because thumbprints should be unique.
Trait Implementations§
Source§impl Clone for CodeSigningCertificate
impl Clone for CodeSigningCertificate
Source§fn clone(&self) -> CodeSigningCertificate
fn clone(&self) -> CodeSigningCertificate
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CodeSigningCertificate
impl Debug for CodeSigningCertificate
Source§impl From<FileBasedCodeSigningCertificate> for CodeSigningCertificate
impl From<FileBasedCodeSigningCertificate> for CodeSigningCertificate
Source§fn from(v: FileBasedCodeSigningCertificate) -> Self
fn from(v: FileBasedCodeSigningCertificate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeSigningCertificate
impl RefUnwindSafe for CodeSigningCertificate
impl Send for CodeSigningCertificate
impl Sync for CodeSigningCertificate
impl Unpin for CodeSigningCertificate
impl UnwindSafe for CodeSigningCertificate
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