feat: Convert QrData into Qr data image source url (#1674)

This commit is contained in:
Sangamesh Kulkarni
2023-07-12 11:44:12 +05:30
committed by GitHub
parent ccd74613db
commit 55ff761e9e
4 changed files with 60 additions and 0 deletions

View File

@ -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> {