macro_rules! qr_code_to {
($data:expr, $format:expr, $width:expr) => { ... };
}
Expand description
Re-exported main qrc
module from qrc for QR code generation.
Macro to create a QR code in a specified format with a given width.
§Parameters
$data
- The data to be encoded in the QR code.$format
- The format of the QR code image (e.g., “png”, “jpg”, “gif”).$width
- The width of the QR code image.
§Example
use qrc::{QRCode, qr_code_to};
qr_code_to!("Hello, world!".into(), "png", 256);