pub struct PrintToPdfParamsBuilder { /* private fields */ }
Implementations§
Source§impl PrintToPdfParamsBuilder
impl PrintToPdfParamsBuilder
pub fn landscape(self, landscape: impl Into<bool>) -> PrintToPdfParamsBuilder
pub fn print_background( self, print_background: impl Into<bool>, ) -> PrintToPdfParamsBuilder
pub fn scale(self, scale: impl Into<f64>) -> PrintToPdfParamsBuilder
pub fn paper_width(self, paper_width: impl Into<f64>) -> PrintToPdfParamsBuilder
pub fn paper_height( self, paper_height: impl Into<f64>, ) -> PrintToPdfParamsBuilder
pub fn margin_top(self, margin_top: impl Into<f64>) -> PrintToPdfParamsBuilder
pub fn margin_bottom( self, margin_bottom: impl Into<f64>, ) -> PrintToPdfParamsBuilder
pub fn margin_left(self, margin_left: impl Into<f64>) -> PrintToPdfParamsBuilder
pub fn margin_right( self, margin_right: impl Into<f64>, ) -> PrintToPdfParamsBuilder
pub fn page_ranges( self, page_ranges: impl Into<String>, ) -> PrintToPdfParamsBuilder
pub fn header_template( self, header_template: impl Into<String>, ) -> PrintToPdfParamsBuilder
pub fn prefer_css_page_size( self, prefer_css_page_size: impl Into<bool>, ) -> PrintToPdfParamsBuilder
pub fn transfer_mode( self, transfer_mode: impl Into<PrintToPdfTransferMode>, ) -> PrintToPdfParamsBuilder
pub fn generate_tagged_pdf( self, generate_tagged_pdf: impl Into<bool>, ) -> PrintToPdfParamsBuilder
pub fn generate_document_outline( self, generate_document_outline: impl Into<bool>, ) -> PrintToPdfParamsBuilder
pub fn build(self) -> PrintToPdfParams
Trait Implementations§
Source§impl Clone for PrintToPdfParamsBuilder
impl Clone for PrintToPdfParamsBuilder
Source§fn clone(&self) -> PrintToPdfParamsBuilder
fn clone(&self) -> PrintToPdfParamsBuilder
Returns a copy 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 PrintToPdfParamsBuilder
impl Default for PrintToPdfParamsBuilder
Source§fn default() -> PrintToPdfParamsBuilder
fn default() -> PrintToPdfParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrintToPdfParamsBuilder
impl RefUnwindSafe for PrintToPdfParamsBuilder
impl Send for PrintToPdfParamsBuilder
impl Sync for PrintToPdfParamsBuilder
impl Unpin for PrintToPdfParamsBuilder
impl UnwindSafe for PrintToPdfParamsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more