pub struct PdfOptions {
pub margin_top: f64,
pub margin_bottom: f64,
pub margin_left: f64,
pub margin_right: f64,
pub footer_template: Option<String>,
}Expand description
PDF rendering configuration.
Fields§
§margin_top: f64Top margin in centimeters.
margin_bottom: f64Bottom margin in centimeters.
margin_left: f64Left margin in centimeters.
margin_right: f64Right margin in centimeters.
Footer template HTML (supports pageNumber, totalPages classes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdfOptions
impl RefUnwindSafe for PdfOptions
impl Send for PdfOptions
impl Sync for PdfOptions
impl Unpin for PdfOptions
impl UnsafeUnpin for PdfOptions
impl UnwindSafe for PdfOptions
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