pub struct QrImage {
pub qr_version: Version,
pub ec_level: EcLevel,
pub dark_color: Rgb<u8>,
pub light_color: Rgb<u8>,
pub enhanced: bool,
pub auto_size: bool,
}
Fields§
§qr_version: Version
§ec_level: EcLevel
§dark_color: Rgb<u8>
§light_color: Rgb<u8>
§enhanced: bool
§auto_size: bool
Implementations§
Source§impl QrImage
impl QrImage
pub fn render(&self, data: &[u8], img: &DynamicImage) -> QrResult<DynamicImage>
pub fn render_frames(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QrImage
impl RefUnwindSafe for QrImage
impl Send for QrImage
impl Sync for QrImage
impl Unpin for QrImage
impl UnwindSafe for QrImage
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more