pub struct PrintParams {
pub context: BrowsingContext,
pub background: Option<bool>,
pub margin: Option<PrintMarginParameters>,
pub orientation: Option<PrintOrientation>,
pub page: Option<PrintPageParameters>,
pub page_ranges: Option<Vec<Value>>,
pub scale: Option<f64>,
pub shrink_to_fit: Option<bool>,
}Fields§
§context: BrowsingContext§background: Option<bool>§margin: Option<PrintMarginParameters>§orientation: Option<PrintOrientation>§page: Option<PrintPageParameters>§page_ranges: Option<Vec<Value>>§scale: Option<f64>§shrink_to_fit: Option<bool>Implementations§
Source§impl PrintParams
impl PrintParams
pub fn new(context: impl Into<BrowsingContext>) -> Self
Trait Implementations§
Source§impl Clone for PrintParams
impl Clone for PrintParams
Source§fn clone(&self) -> PrintParams
fn clone(&self) -> PrintParams
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 PrintParams
impl Debug for PrintParams
Source§impl<'de> Deserialize<'de> for PrintParams
impl<'de> Deserialize<'de> for PrintParams
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 PartialEq for PrintParams
impl PartialEq for PrintParams
Source§impl Serialize for PrintParams
impl Serialize for PrintParams
impl StructuralPartialEq for PrintParams
Auto Trait Implementations§
impl Freeze for PrintParams
impl RefUnwindSafe for PrintParams
impl Send for PrintParams
impl Sync for PrintParams
impl Unpin for PrintParams
impl UnsafeUnpin for PrintParams
impl UnwindSafe for PrintParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more