pub struct PrinterConfig {
pub name: String,
pub driver_type: PrinterDriver,
pub resolution_dpi: u32,
pub paper_size: PaperSize,
pub enabled: bool,
pub is_default: bool,
}Expand description
Configuration for a single printer.
Fields§
§name: StringPrinter name (unique identifier).
driver_type: PrinterDriverDriver type.
resolution_dpi: u32Output resolution in DPI.
paper_size: PaperSizeDefault paper size.
enabled: boolWhether this printer is enabled.
is_default: boolWhether this is the default printer.
Implementations§
Source§impl PrinterConfig
impl PrinterConfig
Sourcepub fn new(name: &str, driver_type: PrinterDriver) -> Self
pub fn new(name: &str, driver_type: PrinterDriver) -> Self
Create a new printer configuration.
Trait Implementations§
Source§impl Clone for PrinterConfig
impl Clone for PrinterConfig
Source§fn clone(&self) -> PrinterConfig
fn clone(&self) -> PrinterConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PrinterConfig
impl RefUnwindSafe for PrinterConfig
impl Send for PrinterConfig
impl Sync for PrinterConfig
impl Unpin for PrinterConfig
impl UnwindSafe for PrinterConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)