Struct tugger_windows_codesign::SigntoolSign
source · [−]pub struct SigntoolSign { /* private fields */ }Expand description
Represents an invocation of signtool.exe sign to sign some files.
Implementations
sourceimpl 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
sourceimpl Clone for SigntoolSign
impl Clone for SigntoolSign
sourcefn clone(&self) -> SigntoolSign
fn clone(&self) -> SigntoolSign
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for SigntoolSign
impl Send for SigntoolSign
impl Sync for SigntoolSign
impl Unpin for SigntoolSign
impl UnwindSafe for SigntoolSign
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more