pub struct AnimateParams {
pub max_fragment_len: usize,
pub correction: Option<CorrectionLevel>,
pub size: u32,
pub foreground: Color,
pub background: Color,
pub quiet_zone: u32,
pub logo: Option<Logo>,
pub fps: f64,
pub cycles: u32,
pub frame_count: Option<usize>,
pub max_modules: Option<usize>,
}Expand description
Parameters for multipart animated QR generation.
Fields§
§max_fragment_len: usizeMaximum fragment length for fountain coding (default 40).
correction: Option<CorrectionLevel>Error correction level. None = auto: Low without
logo, Quartile with logo.
size: u32Target image size in pixels (default 512).
foreground: ColorForeground color (default black).
background: ColorBackground color (default white).
quiet_zone: u32Quiet zone modules around the QR code (default 1).
logo: Option<Logo>Optional logo overlay.
fps: f64Frames per second (default 8.0).
cycles: u32Number of complete cycles through all fragments (default 3).
frame_count: Option<usize>If set, use exactly this many frames instead of
parts_count * cycles. Returns InsufficientFrames
if fewer than the fountain-coded fragment count.
max_modules: Option<usize>If set, check each frame’s QR module count against
this limit. Returns QrCodeTooDense if exceeded.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnimateParams
impl RefUnwindSafe for AnimateParams
impl Send for AnimateParams
impl Sync for AnimateParams
impl Unpin for AnimateParams
impl UnsafeUnpin for AnimateParams
impl UnwindSafe for AnimateParams
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