plushie/widget/qr_code
QR code widget builder.
Types
pub type ErrorCorrection {
Low
Medium
Quartile
High
}
Constructors
-
Low -
Medium -
Quartile -
High
Option type for qr code properties.
pub type Opt {
CellSize(Int)
CellColor(color.Color)
Background(color.Color)
ErrorCorrection(ErrorCorrection)
Alt(String)
Description(String)
TotalSize(Float)
A11y(a11y.A11y)
}
Constructors
-
CellSize(Int) -
CellColor(color.Color) -
Background(color.Color) -
ErrorCorrection(ErrorCorrection) -
Alt(String) -
Description(String) -
TotalSize(Float) -
A11y(a11y.A11y)
Values
pub fn error_correction(
qr: QrCode,
ec: ErrorCorrection,
) -> QrCode
Set the error correction level.