#[non_exhaustive]pub struct SignOptions { /* private fields */ }Expand description
Options for signing a document.
Implementations§
Source§impl SignOptions
impl SignOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
New options with PadesProfile::LongTerm as default.
Sourcepub fn contact_info(self, v: impl Into<String>) -> Self
pub fn contact_info(self, v: impl Into<String>) -> Self
Signer contact information.
Sourcepub fn field_name(self, v: impl Into<String>) -> Self
pub fn field_name(self, v: impl Into<String>) -> Self
Signature form field name. Defaults to Signature1.
Sourcepub fn visible_rect(self, page: usize, rect: [f64; 4]) -> Self
pub fn visible_rect(self, page: usize, rect: [f64; 4]) -> Self
Place a visible signature appearance on a specific page.
Sourcepub fn profile(self, p: PadesProfile) -> Self
pub fn profile(self, p: PadesProfile) -> Self
Select the PAdES profile.
Trait Implementations§
Source§impl Clone for SignOptions
impl Clone for SignOptions
Source§fn clone(&self) -> SignOptions
fn clone(&self) -> SignOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignOptions
impl Debug for SignOptions
Source§impl Default for SignOptions
impl Default for SignOptions
Source§fn default() -> SignOptions
fn default() -> SignOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignOptions
impl RefUnwindSafe for SignOptions
impl Send for SignOptions
impl Sync for SignOptions
impl Unpin for SignOptions
impl UnsafeUnpin for SignOptions
impl UnwindSafe for SignOptions
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreimpl<T> ParallelSend for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.