pub struct QRCodeStylingOptions {
pub data: String,
pub width: u32,
pub height: u32,
pub margin: u32,
pub shape: ShapeType,
pub image: Option<Vec<u8>>,
pub qr_options: QROptions,
pub dots_options: DotsOptions,
pub corners_square_options: CornersSquareOptions,
pub corners_dot_options: CornersDotOptions,
pub background_options: BackgroundOptions,
pub image_options: ImageOptions,
}Expand description
Main configuration for QR code styling.
Fields§
§data: StringData to encode in the QR code.
width: u32Width of the QR code in pixels.
height: u32Height of the QR code in pixels.
margin: u32Margin around the QR code in pixels.
shape: ShapeTypeOverall shape of the QR code.
image: Option<Vec<u8>>Optional image/logo to embed.
qr_options: QROptionsQR code generation options.
dots_options: DotsOptionsDot styling options.
corners_square_options: CornersSquareOptionsCorner square styling options.
corners_dot_options: CornersDotOptionsCorner dot styling options.
background_options: BackgroundOptionsBackground styling options.
image_options: ImageOptionsImage embedding options.
Trait Implementations§
Source§impl Clone for QRCodeStylingOptions
impl Clone for QRCodeStylingOptions
Source§fn clone(&self) -> QRCodeStylingOptions
fn clone(&self) -> QRCodeStylingOptions
Returns a duplicate 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 Debug for QRCodeStylingOptions
impl Debug for QRCodeStylingOptions
Source§impl Default for QRCodeStylingOptions
impl Default for QRCodeStylingOptions
Source§impl PartialEq for QRCodeStylingOptions
impl PartialEq for QRCodeStylingOptions
impl StructuralPartialEq for QRCodeStylingOptions
Auto Trait Implementations§
impl Freeze for QRCodeStylingOptions
impl RefUnwindSafe for QRCodeStylingOptions
impl Send for QRCodeStylingOptions
impl Sync for QRCodeStylingOptions
impl Unpin for QRCodeStylingOptions
impl UnwindSafe for QRCodeStylingOptions
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.