pub struct QRCodeStylingBuilder { /* private fields */ }Expand description
Builder for constructing QRCodeStylingOptions.
Implementations§
Source§impl QRCodeStylingBuilder
impl QRCodeStylingBuilder
Sourcepub fn qr_options(self, options: QROptions) -> Self
pub fn qr_options(self, options: QROptions) -> Self
Set QR code generation options.
Sourcepub fn dots_options(self, options: DotsOptions) -> Self
pub fn dots_options(self, options: DotsOptions) -> Self
Set dot styling options.
Sourcepub fn corners_square_options(self, options: CornersSquareOptions) -> Self
pub fn corners_square_options(self, options: CornersSquareOptions) -> Self
Set corner square styling options.
Sourcepub fn corners_dot_options(self, options: CornersDotOptions) -> Self
pub fn corners_dot_options(self, options: CornersDotOptions) -> Self
Set corner dot styling options.
Sourcepub fn background_options(self, options: BackgroundOptions) -> Self
pub fn background_options(self, options: BackgroundOptions) -> Self
Set background styling options.
Sourcepub fn image_options(self, options: ImageOptions) -> Self
pub fn image_options(self, options: ImageOptions) -> Self
Set image embedding options.
Source§impl QRCodeStylingBuilder
impl QRCodeStylingBuilder
Sourcepub fn build(self) -> Result<QRCodeStyling>
pub fn build(self) -> Result<QRCodeStyling>
Build the QRCodeStyling with the configured options.
Trait Implementations§
Source§impl Clone for QRCodeStylingBuilder
impl Clone for QRCodeStylingBuilder
Source§fn clone(&self) -> QRCodeStylingBuilder
fn clone(&self) -> QRCodeStylingBuilder
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 QRCodeStylingBuilder
impl Debug for QRCodeStylingBuilder
Source§impl Default for QRCodeStylingBuilder
impl Default for QRCodeStylingBuilder
Source§fn default() -> QRCodeStylingBuilder
fn default() -> QRCodeStylingBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QRCodeStylingBuilder
impl RefUnwindSafe for QRCodeStylingBuilder
impl Send for QRCodeStylingBuilder
impl Sync for QRCodeStylingBuilder
impl Unpin for QRCodeStylingBuilder
impl UnwindSafe for QRCodeStylingBuilder
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.