[−][src]Struct selenium_webdriver::PrintSettings
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]
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)
[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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for PrintSettings
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrintSettings
impl Send for PrintSettings
impl Sync for PrintSettings
impl Unpin for PrintSettings
impl UnwindSafe for PrintSettings
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,