mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat: Convert QrData into Qr data image source url (#1674)
This commit is contained in:
committed by
GitHub
parent
ccd74613db
commit
55ff761e9e
@ -68,6 +68,14 @@ pub enum CryptoError {
|
||||
SignatureVerificationFailed,
|
||||
}
|
||||
|
||||
/// Errors for Qr code handling
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum QrCodeError {
|
||||
/// Failed to encode data into Qr code
|
||||
#[error("Failed to create Qr code")]
|
||||
FailedToCreateQrCode,
|
||||
}
|
||||
|
||||
/// Allows [error_stack::Report] to change between error contexts
|
||||
/// using the dependent [ErrorSwitch] trait to define relations & mappings between traits
|
||||
pub trait ReportSwitchExt<T, U> {
|
||||
|
||||
Reference in New Issue
Block a user