pub struct EuvCameraConfig {
pub video_selector: &'static str,
pub scan_interval_millis: i32,
pub auto_scan: bool,
pub on_qr_detected: Option<QrDetectedCallback>,
pub on_error: Option<CameraErrorCallback>,
}Expand description
Configuration for camera initialization.
Fields§
§video_selector: &'static strThe CSS selector for the video element.
scan_interval_millis: i32The scan interval in milliseconds.
auto_scan: boolWhether to auto-start QR scanning when camera opens.
on_qr_detected: Option<QrDetectedCallback>Callback when a QR code is detected.
on_error: Option<CameraErrorCallback>Callback when camera error occurs.
Trait Implementations§
Source§impl Clone for EuvCameraConfig
impl Clone for EuvCameraConfig
Source§fn clone(&self) -> EuvCameraConfig
fn clone(&self) -> EuvCameraConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EuvCameraConfig
impl Debug for EuvCameraConfig
Auto Trait Implementations§
impl !RefUnwindSafe for EuvCameraConfig
impl !Send for EuvCameraConfig
impl !Sync for EuvCameraConfig
impl !UnwindSafe for EuvCameraConfig
impl Freeze for EuvCameraConfig
impl Unpin for EuvCameraConfig
impl UnsafeUnpin for EuvCameraConfig
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