pub struct SigntoolSign { /* private fields */ }Expand description
Represents an invocation of signtool.exe sign to sign some files.
Implementations§
Source§impl SigntoolSign
impl SigntoolSign
Sourcepub fn new(certificate: CodeSigningCertificate) -> Self
pub fn new(certificate: CodeSigningCertificate) -> Self
Construct a new instance using a specified signing certificate.
Sourcepub fn clone_settings(&self) -> Self
pub fn clone_settings(&self) -> Self
Clone this instance, but not the list of files to sign.
Sourcepub fn description(&mut self, description: impl ToString) -> &mut Self
pub fn description(&mut self, description: impl ToString) -> &mut Self
Set the description of the content to be signed.
This is passed into the /d argument.
Sourcepub fn file_digest_algorithm(&mut self, algorithm: impl ToString) -> &mut Self
pub fn file_digest_algorithm(&mut self, algorithm: impl ToString) -> &mut Self
Set the file digest algorithm to use.
This is passed into the /fd argument.
Sourcepub fn timestamp_server(&mut self, server: TimestampServer) -> &mut Self
pub fn timestamp_server(&mut self, server: TimestampServer) -> &mut Self
Set the timestamp server to use when signing.
Sourcepub fn extra_args(
&mut self,
extra_args: impl Iterator<Item = impl ToString>,
) -> &mut Self
pub fn extra_args( &mut self, extra_args: impl Iterator<Item = impl ToString>, ) -> &mut Self
Set extra arguments to pass to signtool.
Ideally this would not be used. Consider adding a separate API for use cases that require this.
Trait Implementations§
Source§impl Clone for SigntoolSign
impl Clone for SigntoolSign
Source§fn clone(&self) -> SigntoolSign
fn clone(&self) -> SigntoolSign
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SigntoolSign
impl RefUnwindSafe for SigntoolSign
impl Send for SigntoolSign
impl Sync for SigntoolSign
impl Unpin for SigntoolSign
impl UnwindSafe for SigntoolSign
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