[][src]Struct selenium_webdriver::PrintSettings

pub struct PrintSettings { /* fields omitted */ }

Main struct for print settings

Has the default method with default WebDriver print settings and getters/setters for print adjustment.

Implementations

impl PrintSettings[src]

pub fn new(
    orientation: Orientation,
    scale: f32,
    background: bool,
    page: Page,
    margin: Margin,
    shrink_tf: bool,
    pages: Vec<u32>
) -> Self
[src]

pub fn set_orientation(&mut self, orientation: Orientation)[src]

pub fn set_scale(&mut self, scale: f32)[src]

Should be between 0.1 and 2.0 inclusively

pub fn set_background(&mut self, background: bool)[src]

Flags to include the background or not

pub fn set_page(&mut self, page: Page)[src]

pub fn set_margin(&mut self, margin: Margin)[src]

pub fn set_shrink_to_fit(&mut self, shr_to_fit: bool)[src]

Flags whether the webpage should be shrunk if it does not fit the print page

pub fn set_pages(&mut self, pages: Vec<u32>)[src]

Sets the page range for printing

Trait Implementations

impl Debug for PrintSettings[src]

impl Default for PrintSettings[src]

impl<'de> Deserialize<'de> for PrintSettings[src]

impl Serialize for PrintSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.