pub struct CertificationConfig {
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 certifying 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 CertificationConfig
impl Clone for CertificationConfig
Source§fn clone(&self) -> CertificationConfig
fn clone(&self) -> CertificationConfig
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 CertificationConfig
impl Debug for CertificationConfig
Source§impl<'de> Deserialize<'de> for CertificationConfig
impl<'de> Deserialize<'de> for CertificationConfig
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 CertificationConfig
impl RefUnwindSafe for CertificationConfig
impl Send for CertificationConfig
impl Sync for CertificationConfig
impl Unpin for CertificationConfig
impl UnsafeUnpin for CertificationConfig
impl UnwindSafe for CertificationConfig
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