pub struct PdfConfig {
pub page_size: PageSize,
pub orientation: Orientation,
pub margins: Margins,
pub scale: f64,
pub print_background: bool,
pub display_header_footer: bool,
pub header_template: Option<String>,
pub footer_template: Option<String>,
pub prefer_css_page_size: bool,
pub timeout_seconds: u64,
}Expand description
Complete PDF generation configuration.
Fields§
§page_size: PageSizePage size configuration
orientation: OrientationPage orientation
margins: MarginsPage margins in inches
scale: f64Scale factor (0.1 to 2.0)
print_background: boolPrint background graphics
Display header and footer
header_template: Option<String>Header template (HTML)
Footer template (HTML)
prefer_css_page_size: boolPrefer CSS page size
timeout_seconds: u64Generation timeout in seconds
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PdfConfig
impl<'de> Deserialize<'de> for PdfConfig
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
Auto Trait Implementations§
impl Freeze for PdfConfig
impl RefUnwindSafe for PdfConfig
impl Send for PdfConfig
impl Sync for PdfConfig
impl Unpin for PdfConfig
impl UnwindSafe for PdfConfig
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