#[repr(C)]pub enum ErrorCorrectionLevel {
Low,
Medium,
Quartile,
High,
}
Expand description
Controls the amount of fault tolerance that the QR code should accept. Require the feature
flag with-qrcode
.
Variants§
Low
7% of data bytes can be restored.
Medium
15% of data bytes can be restored.
Quartile
25% of data bytes can be restored.
High
30% of data bytes can be restored.
Trait Implementations§
source§impl Clone for ErrorCorrectionLevel
impl Clone for ErrorCorrectionLevel
source§fn clone(&self) -> ErrorCorrectionLevel
fn clone(&self) -> ErrorCorrectionLevel
Returns a copy 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 Display for ErrorCorrectionLevel
impl Display for ErrorCorrectionLevel
impl Copy for ErrorCorrectionLevel
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCorrectionLevel
impl Send for ErrorCorrectionLevel
impl Sync for ErrorCorrectionLevel
impl Unpin for ErrorCorrectionLevel
impl UnwindSafe for ErrorCorrectionLevel
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