pub struct CompatiblePrinter {
pub manufacturer: Option<String>,
pub model_pattern: Option<String>,
pub display_width_px: Option<u32>,
pub display_height_px: Option<u32>,
pub pixel_size_um: Option<u32>,
pub extra: Map<String, Value>,
}Expand description
A printer a profile is known to fit, as a model pattern plus display hints.
Fields§
§manufacturer: Option<String>Manufacturer.
model_pattern: Option<String>Glob-like model pattern, e.g. Ares 12K*.
display_width_px: Option<u32>Display width in pixels.
display_height_px: Option<u32>Display height in pixels.
pixel_size_um: Option<u32>Pixel pitch in micrometers.
extra: Map<String, Value>Unknown keys, preserved verbatim.
Trait Implementations§
Source§impl Clone for CompatiblePrinter
impl Clone for CompatiblePrinter
Source§fn clone(&self) -> CompatiblePrinter
fn clone(&self) -> CompatiblePrinter
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 CompatiblePrinter
impl Debug for CompatiblePrinter
Source§impl Default for CompatiblePrinter
impl Default for CompatiblePrinter
Source§fn default() -> CompatiblePrinter
fn default() -> CompatiblePrinter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompatiblePrinter
impl<'de> Deserialize<'de> for CompatiblePrinter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompatiblePrinter
impl PartialEq for CompatiblePrinter
Source§impl Serialize for CompatiblePrinter
impl Serialize for CompatiblePrinter
impl StructuralPartialEq for CompatiblePrinter
Auto Trait Implementations§
impl Freeze for CompatiblePrinter
impl RefUnwindSafe for CompatiblePrinter
impl Send for CompatiblePrinter
impl Sync for CompatiblePrinter
impl Unpin for CompatiblePrinter
impl UnsafeUnpin for CompatiblePrinter
impl UnwindSafe for CompatiblePrinter
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