#[non_exhaustive]pub struct PdfOptions {
pub format: Option<PaperFormat>,
pub landscape: Option<bool>,
pub print_background: Option<bool>,
pub scale: Option<f64>,
pub margin: Option<PdfMargin>,
pub prefer_css_page_size: Option<bool>,
}Expand description
Options for Page::pdf (minimal subset of CDP Page.printToPDF).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: Option<PaperFormat>§landscape: Option<bool>§print_background: Option<bool>§scale: Option<f64>§margin: Option<PdfMargin>§prefer_css_page_size: Option<bool>Implementations§
Trait Implementations§
Source§impl Clone for PdfOptions
impl Clone for PdfOptions
Source§fn clone(&self) -> PdfOptions
fn clone(&self) -> PdfOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PdfOptions
impl Debug for PdfOptions
Source§impl Default for PdfOptions
impl Default for PdfOptions
Source§fn default() -> PdfOptions
fn default() -> PdfOptions
Returns the “default value” for a type. Read more
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