pub struct PrintConfig {Show 22 fields
pub paper_size: PaperSize,
pub orientation: PageOrientation,
pub margin_top_mm: f32,
pub margin_right_mm: f32,
pub margin_bottom_mm: f32,
pub margin_left_mm: f32,
pub bleed_top_mm: f32,
pub bleed_right_mm: f32,
pub bleed_bottom_mm: f32,
pub bleed_left_mm: f32,
pub safe_top_mm: f32,
pub safe_right_mm: f32,
pub safe_bottom_mm: f32,
pub safe_left_mm: f32,
pub system_height_mm: f32,
pub scale: f32,
pub measures_per_system: usize,
pub systems_per_page: Option<usize>,
pub page_numbering: PageNumbering,
pub color_policy: PrintColorPolicy,
pub crop_mark_policy: CropMarkPolicy,
pub glyph_resources: GlyphResourcePolicy,
}Expand description
Host-neutral inputs for deterministic page and system layout.
This contract describes physical page geometry only. It intentionally does not select fonts, emit PDF, access printers, or perform filesystem I/O.
Fields§
§paper_size: PaperSize§orientation: PageOrientation§margin_top_mm: f32§margin_right_mm: f32§margin_bottom_mm: f32§margin_left_mm: f32§bleed_top_mm: f32§bleed_right_mm: f32§bleed_bottom_mm: f32§bleed_left_mm: f32§safe_top_mm: f32§safe_right_mm: f32§safe_bottom_mm: f32§safe_left_mm: f32§system_height_mm: f32§scale: f32Content scale factor. 1.0 preserves the configured system height.
measures_per_system: usize§systems_per_page: Option<usize>Override the number of systems per page. When omitted it is derived from the usable
page height and system_height_mm.
page_numbering: PageNumbering§color_policy: PrintColorPolicy§crop_mark_policy: CropMarkPolicy§glyph_resources: GlyphResourcePolicyTrait Implementations§
Source§impl Clone for PrintConfig
impl Clone for PrintConfig
Source§fn clone(&self) -> PrintConfig
fn clone(&self) -> PrintConfig
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 PrintConfig
impl Debug for PrintConfig
Source§impl Default for PrintConfig
impl Default for PrintConfig
Source§impl<'de> Deserialize<'de> for PrintConfigwhere
PrintConfig: Default,
impl<'de> Deserialize<'de> for PrintConfigwhere
PrintConfig: Default,
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 PrintConfig
impl PartialEq for PrintConfig
Source§impl Serialize for PrintConfig
impl Serialize for PrintConfig
impl StructuralPartialEq for PrintConfig
Auto Trait Implementations§
impl Freeze for PrintConfig
impl RefUnwindSafe for PrintConfig
impl Send for PrintConfig
impl Sync for PrintConfig
impl Unpin for PrintConfig
impl UnsafeUnpin for PrintConfig
impl UnwindSafe for PrintConfig
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