pub struct PrintSettings { /* private fields */ }
Expand description
Main struct for print settings
Has the default method with default WebDriver print settings and getters/setters for print adjustment.
Implementations§
Source§impl PrintSettings
impl PrintSettings
pub fn new( orientation: Orientation, scale: f32, background: bool, page: Page, margin: Margin, shrink_tf: bool, pages: Vec<u32>, ) -> Self
pub fn set_orientation(&mut self, orientation: Orientation)
Sourcepub fn set_background(&mut self, background: bool)
pub fn set_background(&mut self, background: bool)
Flags to include the background or not
pub fn set_page(&mut self, page: Page)
pub fn set_margin(&mut self, margin: Margin)
Sourcepub fn set_shrink_to_fit(&mut self, shr_to_fit: bool)
pub fn set_shrink_to_fit(&mut self, shr_to_fit: bool)
Flags whether the webpage should be shrunk if it does not fit the print page
Trait Implementations§
Source§impl Debug for PrintSettings
impl Debug for PrintSettings
Source§impl Default for PrintSettings
impl Default for PrintSettings
Source§impl<'de> Deserialize<'de> for PrintSettings
impl<'de> Deserialize<'de> for PrintSettings
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
Auto Trait Implementations§
impl Freeze for PrintSettings
impl RefUnwindSafe for PrintSettings
impl Send for PrintSettings
impl Sync for PrintSettings
impl Unpin for PrintSettings
impl UnwindSafe for PrintSettings
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