pub struct PrintToPdfBuilder { /* private fields */ }Implementations§
Source§impl PrintToPdfBuilder
impl PrintToPdfBuilder
pub fn landscape(self, landscape: impl Into<bool>) -> Self
pub fn print_background(self, print_background: impl Into<bool>) -> Self
pub fn scale(self, scale: impl Into<f64>) -> Self
pub fn paper_width(self, paper_width: impl Into<f64>) -> Self
pub fn paper_height(self, paper_height: impl Into<f64>) -> Self
pub fn margin_top(self, margin_top: impl Into<f64>) -> Self
pub fn margin_bottom(self, margin_bottom: impl Into<f64>) -> Self
pub fn margin_left(self, margin_left: impl Into<f64>) -> Self
pub fn margin_right(self, margin_right: impl Into<f64>) -> Self
pub fn page_ranges(self, page_ranges: impl Into<String>) -> Self
pub fn header_template(self, header_template: impl Into<String>) -> Self
pub fn prefer_css_page_size(self, prefer_css_page_size: impl Into<bool>) -> Self
pub fn transfer_mode( self, transfer_mode: impl Into<PrintToPdfTransferMode>, ) -> Self
pub fn generate_tagged_pdf(self, generate_tagged_pdf: impl Into<bool>) -> Self
pub fn generate_document_outline( self, generate_document_outline: impl Into<bool>, ) -> Self
pub fn build(self) -> PrintToPdf
Trait Implementations§
Source§impl Clone for PrintToPdfBuilder
impl Clone for PrintToPdfBuilder
Source§fn clone(&self) -> PrintToPdfBuilder
fn clone(&self) -> PrintToPdfBuilder
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 Default for PrintToPdfBuilder
impl Default for PrintToPdfBuilder
Source§fn default() -> PrintToPdfBuilder
fn default() -> PrintToPdfBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrintToPdfBuilder
impl RefUnwindSafe for PrintToPdfBuilder
impl Send for PrintToPdfBuilder
impl Sync for PrintToPdfBuilder
impl Unpin for PrintToPdfBuilder
impl UnsafeUnpin for PrintToPdfBuilder
impl UnwindSafe for PrintToPdfBuilder
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