pub struct PrintToPdfOptions { /* private fields */ }
Implementations§
Source§impl PrintToPdfOptions
impl PrintToPdfOptions
pub fn new( landscape: Option<bool>, margins_type: Option<usize>, page_size: Option<Size>, print_background: Option<bool>, print_selection_only: Option<bool>, ) -> PrintToPdfOptions
pub fn landscape(&self) -> Option<bool>
pub fn margins_type(&self) -> Option<usize>
pub fn page_size(&self) -> Option<Size>
pub fn print_background(&self) -> Option<bool>
pub fn print_selection_only(&self) -> Option<bool>
Trait Implementations§
Source§impl Clone for PrintToPdfOptions
impl Clone for PrintToPdfOptions
Source§fn clone(&self) -> PrintToPdfOptions
fn clone(&self) -> PrintToPdfOptions
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 PrintToPdfOptions
impl Debug for PrintToPdfOptions
Source§impl From<PrintToPdfOptions> for JsValue
impl From<PrintToPdfOptions> for JsValue
Source§fn from(value: PrintToPdfOptions) -> Self
fn from(value: PrintToPdfOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PrintToPdfOptions
impl FromWasmAbi for PrintToPdfOptions
Source§impl Hash for PrintToPdfOptions
impl Hash for PrintToPdfOptions
Source§impl IntoWasmAbi for PrintToPdfOptions
impl IntoWasmAbi for PrintToPdfOptions
Source§impl Ord for PrintToPdfOptions
impl Ord for PrintToPdfOptions
Source§fn cmp(&self, other: &PrintToPdfOptions) -> Ordering
fn cmp(&self, other: &PrintToPdfOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrintToPdfOptions
impl PartialEq for PrintToPdfOptions
Source§impl PartialOrd for PrintToPdfOptions
impl PartialOrd for PrintToPdfOptions
Source§impl RefFromWasmAbi for PrintToPdfOptions
impl RefFromWasmAbi for PrintToPdfOptions
Source§type Anchor = RcRef<PrintToPdfOptions>
type Anchor = RcRef<PrintToPdfOptions>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for PrintToPdfOptions
impl TryFromJsValue for PrintToPdfOptions
Source§impl VectorFromWasmAbi for PrintToPdfOptions
impl VectorFromWasmAbi for PrintToPdfOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PrintToPdfOptions]>
Source§impl VectorIntoJsValue for PrintToPdfOptions
impl VectorIntoJsValue for PrintToPdfOptions
fn vector_into_jsvalue(vector: Box<[PrintToPdfOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for PrintToPdfOptions
impl VectorIntoWasmAbi for PrintToPdfOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PrintToPdfOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for PrintToPdfOptions
impl WasmDescribeVector for PrintToPdfOptions
impl Copy for PrintToPdfOptions
impl Eq for PrintToPdfOptions
impl StructuralPartialEq for PrintToPdfOptions
impl SupportsConstructor for PrintToPdfOptions
impl SupportsInstanceProperty for PrintToPdfOptions
impl SupportsStaticProperty for PrintToPdfOptions
Auto Trait Implementations§
impl Freeze for PrintToPdfOptions
impl RefUnwindSafe for PrintToPdfOptions
impl Send for PrintToPdfOptions
impl Sync for PrintToPdfOptions
impl Unpin for PrintToPdfOptions
impl UnwindSafe for PrintToPdfOptions
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.