Struct tugger_windows_codesign::SigntoolSign [−][src]
pub struct SigntoolSign { /* fields omitted */ }
Represents an invocation of signtool.exe sign
to sign some files.
Implementations
impl SigntoolSign
[src]
impl SigntoolSign
[src]pub fn new(certificate: CodeSigningCertificate) -> Self
[src]
Construct a new instance using a specified signing certificate.
pub fn clone_settings(&self) -> Self
[src]
Clone this instance, but not the list of files to sign.
pub fn verbose(&mut self) -> &mut Self
[src]
Run signtool in verbose mode.
Activates the /v
flag.
pub fn debug(&mut self) -> &mut Self
[src]
Run signtool in debug mode.
Activates the /debug
flag.
pub fn description(&mut self, description: impl ToString) -> &mut Self
[src]
Set the description of the content to be signed.
This is passed into the /d
argument.
pub fn file_digest_algorithm(&mut self, algorithm: impl ToString) -> &mut Self
[src]
Set the file digest algorithm to use.
This is passed into the /fd
argument.
pub fn timestamp_server(&mut self, server: TimestampServer) -> &mut Self
[src]
Set the timestamp server to use when signing.
pub fn extra_args(
&mut self,
extra_args: impl Iterator<Item = impl ToString>
) -> &mut Self
[src]
&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.
pub fn sign_file(&mut self, path: impl AsRef<Path>) -> &mut Self
[src]
Mark a file path as to be signed.
pub fn run(&self, logger: &Logger) -> Result<()>
[src]
Run signtool sign
with requested options.
Trait Implementations
impl Clone for SigntoolSign
[src]
impl Clone for SigntoolSign
[src]fn clone(&self) -> SigntoolSign
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SigntoolSign
impl RefUnwindSafe for SigntoolSign
impl Send for SigntoolSign
impl Send for SigntoolSign
impl Sync for SigntoolSign
impl Sync for SigntoolSign
impl Unpin for SigntoolSign
impl Unpin for SigntoolSign
impl UnwindSafe for SigntoolSign
impl UnwindSafe for SigntoolSign