pub struct SigningOptions {
pub signer_name: Option<String>,
pub reason: Option<String>,
pub location: Option<String>,
pub contact_info: Option<String>,
pub digest_algorithm: DigestAlgorithm,
pub timestamp_token: Option<Vec<u8>>,
pub visible: bool,
pub appearance_rect: Option<[f64; 4]>,
}Expand description
Options for creating a PDF signature.
Fields§
§signer_name: Option<String>Signer name to embed in the signature.
reason: Option<String>Reason for signing.
location: Option<String>Location of signing.
contact_info: Option<String>Contact information.
digest_algorithm: DigestAlgorithmDigest algorithm (default: SHA-256).
timestamp_token: Option<Vec<u8>>RFC 3161 timestamp token (DER-encoded).
Caller is responsible for obtaining this from a TSA server.
Use create_timestamp_request() to build the request,
send it via HTTP to a TSA, then parse_timestamp_response() to extract the token.
visible: boolWhether to create a visible signature appearance.
appearance_rect: Option<[f64; 4]>Rectangle for visible signature [llx, lly, urx, ury] in points. Defaults to [0, 0, 200, 80] if visible=true and rect is None.
Trait Implementations§
Source§impl Clone for SigningOptions
impl Clone for SigningOptions
Source§fn clone(&self) -> SigningOptions
fn clone(&self) -> SigningOptions
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 moreSource§impl Debug for SigningOptions
impl Debug for SigningOptions
Auto Trait Implementations§
impl Freeze for SigningOptions
impl RefUnwindSafe for SigningOptions
impl Send for SigningOptions
impl Sync for SigningOptions
impl Unpin for SigningOptions
impl UnsafeUnpin for SigningOptions
impl UnwindSafe for SigningOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more