pub struct Signer {
pub key: SigningKey,
pub name: String,
pub reason: Option<String>,
pub location: Option<String>,
pub contact_info: Option<String>,
pub visual_signature: Option<VisualSignature>,
}Expand description
High-level, context-oriented PDF digital signer.
Fields§
§key: SigningKey§name: String§reason: Option<String>§location: Option<String>§contact_info: Option<String>§visual_signature: Option<VisualSignature>Implementations§
Source§impl Signer
impl Signer
pub fn new(key: SigningKey) -> Self
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_reason(self, reason: impl Into<String>) -> Self
pub fn with_location(self, location: impl Into<String>) -> Self
pub fn with_contact_info(self, contact: impl Into<String>) -> Self
pub fn with_visual_stamp(self, vis: VisualSignature) -> Self
Sourcepub fn sign_document(&self, doc: &mut PDDocument) -> PdfResult<Vec<u8>>
pub fn sign_document(&self, doc: &mut PDDocument) -> PdfResult<Vec<u8>>
Digitally signs the document and returns the final signed PDF bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnsafeUnpin for Signer
impl UnwindSafe for Signer
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