pub struct Printer {
pub name: String,
pub system_name: String,
pub driver_name: String,
pub uri: String,
pub location: String,
pub is_default: bool,
pub is_shared: bool,
pub state: PrinterState,
}Expand description
Printer is a struct to representation the system printer They has an ID composed by your system_name and has printing method to print directly
Fields§
§name: StringVisual reference of system printer name
system_name: StringName of Printer exactly as on system
driver_name: StringName of the Printer driver
uri: StringUri of Print (default is empty string)
location: StringLocation definition of printer (default is empty string)
is_default: boolDefinition if the printer is the default printer
Definition if the printer is shared
state: PrinterStateThe state of the printer
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Printer
impl RefUnwindSafe for Printer
impl Send for Printer
impl Sync for Printer
impl Unpin for Printer
impl UnsafeUnpin for Printer
impl UnwindSafe for Printer
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