pub struct PrintToPdf { /* private fields */ }Expand description
Print page as PDF.
Implementations§
Source§impl PrintToPdf
impl PrintToPdf
pub fn new() -> Self
pub fn with_landscape(self, landscape: impl Into<bool>) -> Self
pub fn with_print_background(self, print_background: impl Into<bool>) -> Self
pub fn with_scale(self, scale: impl Into<f64>) -> Self
pub fn with_paper_width(self, paper_width: impl Into<f64>) -> Self
pub fn with_paper_height(self, paper_height: impl Into<f64>) -> Self
pub fn with_margin_top(self, margin_top: impl Into<f64>) -> Self
pub fn with_margin_bottom(self, margin_bottom: impl Into<f64>) -> Self
pub fn with_margin_left(self, margin_left: impl Into<f64>) -> Self
pub fn with_margin_right(self, margin_right: impl Into<f64>) -> Self
pub fn with_page_ranges(self, page_ranges: impl Into<String>) -> Self
pub fn with_header_template(self, header_template: impl Into<String>) -> Self
pub fn with_prefer_css_page_size( self, prefer_css_page_size: impl Into<bool>, ) -> Self
pub fn with_transfer_mode(self, transfer_mode: impl Into<String>) -> Self
pub fn with_generate_tagged_pdf( self, generate_tagged_pdf: impl Into<bool>, ) -> Self
pub fn with_generate_document_outline( self, generate_document_outline: impl Into<bool>, ) -> Self
Trait Implementations§
Source§impl Clone for PrintToPdf
impl Clone for PrintToPdf
Source§fn clone(&self) -> PrintToPdf
fn clone(&self) -> PrintToPdf
Returns a duplicate of the value. Read more
1.0.0 · 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 PrintToPdf
impl Debug for PrintToPdf
Source§impl Method for PrintToPdf
impl Method for PrintToPdf
Source§type Response = PrintToPdfResponse
type Response = PrintToPdfResponse
Response type for this method
Auto Trait Implementations§
impl Freeze for PrintToPdf
impl RefUnwindSafe for PrintToPdf
impl Send for PrintToPdf
impl Sync for PrintToPdf
impl Unpin for PrintToPdf
impl UnsafeUnpin for PrintToPdf
impl UnwindSafe for PrintToPdf
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