pub struct SignatureConfig {
pub certificate_pem: String,
pub private_key_pem: String,
pub reason: Option<String>,
pub location: Option<String>,
pub contact: Option<String>,
pub visible: bool,
pub x: Option<f64>,
pub y: Option<f64>,
pub width: Option<f64>,
pub height: Option<f64>,
}Expand description
Configuration for digitally signing a PDF with an X.509 certificate.
Fields§
§certificate_pem: StringPEM-encoded X.509 certificate.
private_key_pem: StringPEM-encoded RSA private key (PKCS#8).
reason: Option<String>Reason for signing (e.g. “Approved”).
location: Option<String>Location of signing (e.g. “New York, NY”).
contact: Option<String>Contact info for the signer.
visible: boolWhether to show a visible signature annotation on the page.
x: Option<f64>X coordinate in points for visible signature.
y: Option<f64>Y coordinate in points for visible signature.
width: Option<f64>Width in points for visible signature.
height: Option<f64>Height in points for visible signature.
Trait Implementations§
Source§impl Clone for SignatureConfig
impl Clone for SignatureConfig
Source§fn clone(&self) -> SignatureConfig
fn clone(&self) -> SignatureConfig
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 SignatureConfig
impl Debug for SignatureConfig
Source§impl<'de> Deserialize<'de> for SignatureConfig
impl<'de> Deserialize<'de> for SignatureConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SignatureConfig
impl RefUnwindSafe for SignatureConfig
impl Send for SignatureConfig
impl Sync for SignatureConfig
impl Unpin for SignatureConfig
impl UnsafeUnpin for SignatureConfig
impl UnwindSafe for SignatureConfig
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