pub struct SignatureRequest {
pub sig_file: String,
pub sig_format: SignatureFormat,
pub sig_width: i32,
pub disable_signature: bool,
}Expand description
A request for customer signature data.
Fields§
§sig_file: StringA location on the filesystem which a customer signature should be written to.
sig_format: SignatureFormatThe image format to be used for returning signatures.
sig_width: i32The width that the signature image should be scaled to, preserving the aspect ratio. If not provided, the signature is returned in the terminal’s max resolution.
disable_signature: boolWhether or not signature prompt should be skipped on the terminal. The terminal will indicate whether or not a signature is required by the card in the receipt suggestions response.
Trait Implementations§
Source§impl Clone for SignatureRequest
impl Clone for SignatureRequest
Source§fn clone(&self) -> SignatureRequest
fn clone(&self) -> SignatureRequest
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 SignatureRequest
impl Debug for SignatureRequest
Source§impl Default for SignatureRequest
impl Default for SignatureRequest
Source§fn default() -> SignatureRequest
fn default() -> SignatureRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SignatureRequest
impl<'de> Deserialize<'de> for SignatureRequest
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 SignatureRequest
impl RefUnwindSafe for SignatureRequest
impl Send for SignatureRequest
impl Sync for SignatureRequest
impl Unpin for SignatureRequest
impl UnsafeUnpin for SignatureRequest
impl UnwindSafe for SignatureRequest
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