pub struct QROptions {
pub type_number: u8,
pub error_correction_level: ErrorCorrectionLevel,
pub mode: Option<Mode>,
}Expand description
Options for QR code generation.
Fields§
§type_number: u8QR code version/type number (0 = auto, 1-40 for specific versions).
error_correction_level: ErrorCorrectionLevelError correction level.
mode: Option<Mode>Encoding mode (None = auto-detect).
Implementations§
Source§impl QROptions
impl QROptions
Sourcepub fn with_type_number(self, type_number: u8) -> Self
pub fn with_type_number(self, type_number: u8) -> Self
Set the type/version number.
Sourcepub fn with_error_correction_level(self, level: ErrorCorrectionLevel) -> Self
pub fn with_error_correction_level(self, level: ErrorCorrectionLevel) -> Self
Set the error correction level.
Trait Implementations§
impl StructuralPartialEq for QROptions
Auto Trait Implementations§
impl Freeze for QROptions
impl RefUnwindSafe for QROptions
impl Send for QROptions
impl Sync for QROptions
impl Unpin for QROptions
impl UnwindSafe for QROptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.