pub struct PrintToPDF {Show 17 fields
pub landscape: Option<bool>,
pub display_header_footer: Option<bool>,
pub print_background: Option<bool>,
pub scale: Option<JsFloat>,
pub paper_width: Option<JsFloat>,
pub paper_height: Option<JsFloat>,
pub margin_top: Option<JsFloat>,
pub margin_bottom: Option<JsFloat>,
pub margin_left: Option<JsFloat>,
pub margin_right: Option<JsFloat>,
pub page_ranges: Option<String>,
pub header_template: Option<String>,
pub footer_template: Option<String>,
pub prefer_css_page_size: Option<bool>,
pub transfer_mode: Option<PrintToPdfTransferModeOption>,
pub generate_tagged_pdf: Option<bool>,
pub generate_document_outline: Option<bool>,
}Fields§
§landscape: Option<bool>§print_background: Option<bool>§scale: Option<JsFloat>§paper_width: Option<JsFloat>§paper_height: Option<JsFloat>§margin_top: Option<JsFloat>§margin_bottom: Option<JsFloat>§margin_left: Option<JsFloat>§margin_right: Option<JsFloat>§page_ranges: Option<String>§header_template: Option<String>§prefer_css_page_size: Option<bool>§transfer_mode: Option<PrintToPdfTransferModeOption>§generate_tagged_pdf: Option<bool>§generate_document_outline: Option<bool>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<'de> Deserialize<'de> for PrintToPDF
impl<'de> Deserialize<'de> for PrintToPDF
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for PrintToPDF
impl Method for PrintToPDF
const NAME: &'static str = "Page.printToPDF"
type ReturnObject = PrintToPDFReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for PrintToPDF
impl PartialEq for PrintToPDF
Source§impl Serialize for PrintToPDF
impl Serialize for PrintToPDF
impl StructuralPartialEq for PrintToPDF
Auto Trait Implementations§
impl Freeze for PrintToPDF
impl RefUnwindSafe for PrintToPDF
impl Send for PrintToPDF
impl Sync for PrintToPDF
impl Unpin 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