Struct headless_chrome::protocol::cdp::Page::PrintToPDF
source · pub struct PrintToPDF {Show 16 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 ignore_invalid_page_ranges: Option<bool>,
pub header_template: Option<String>,
pub footer_template: Option<String>,
pub prefer_css_page_size: Option<bool>,
pub transfer_mode: Option<PrintToPDFTransfer_modeOption>,
}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>§ignore_invalid_page_ranges: Option<bool>§header_template: Option<String>§prefer_css_page_size: Option<bool>§transfer_mode: Option<PrintToPDFTransfer_modeOption>Trait Implementations§
source§impl Clone for PrintToPDF
impl Clone for PrintToPDF
source§fn clone(&self) -> PrintToPDF
fn clone(&self) -> PrintToPDF
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 Debug for PrintToPDF
impl Debug for PrintToPDF
source§impl Default for PrintToPDF
impl Default 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