pub struct WebContentsPrintOptions { /* private fields */ }
Implementations§
Source§impl WebContentsPrintOptions
impl WebContentsPrintOptions
pub fn new_with_values( collate: Option<bool>, color: Option<bool>, copies: Option<u32>, device_name: Option<JsString>, dpi: Option<Dpi>, duplex_mode: Option<JsString>, footer: Option<JsString>, header: Option<JsString>, landscape: Option<bool>, margins: Option<Margins>, page_ranges: Option<Object>, pages_per_sheet: Option<u32>, print_background: Option<bool>, scale_factor: Option<Number>, silent: Option<bool>, ) -> WebContentsPrintOptions
pub fn new() -> WebContentsPrintOptions
pub fn collate(&self) -> Option<bool>
pub fn set_collate(&mut self, value: Option<bool>)
pub fn color(&self) -> Option<bool>
pub fn set_color(&mut self, value: Option<bool>)
pub fn copies(&self) -> Option<u32>
pub fn set_copies(&mut self, value: Option<u32>)
pub fn device_name(&self) -> Option<JsString>
pub fn set_device_name(&mut self, value: Option<JsString>)
pub fn dpi(&self) -> Option<Dpi>
pub fn set_dpi(&mut self, value: Option<Dpi>)
pub fn duplex_mode(&self) -> Option<JsString>
pub fn set_duplex_mode(&mut self, value: Option<JsString>)
pub fn header(&self) -> Option<JsString>
pub fn set_header(&mut self, value: Option<JsString>)
pub fn landscape(&self) -> Option<bool>
pub fn set_landscape(&mut self, value: Option<bool>)
pub fn margins(&self) -> Option<Margins>
pub fn set_margins(&mut self, value: Option<Margins>)
pub fn page_ranges(&self) -> Option<Object>
pub fn set_page_ranges(&mut self, value: Option<Object>)
pub fn pages_per_sheet(&self) -> Option<u32>
pub fn set_pages_per_sheet(&mut self, value: Option<u32>)
pub fn print_background(&self) -> Option<bool>
pub fn set_print_background(&mut self, value: Option<bool>)
pub fn scale_factor(&self) -> Option<Number>
pub fn set_scale_factor(&mut self, value: Option<Number>)
pub fn silent(&self) -> Option<bool>
pub fn set_silent(&mut self, value: Option<bool>)
Trait Implementations§
Source§impl Clone for WebContentsPrintOptions
impl Clone for WebContentsPrintOptions
Source§fn clone(&self) -> WebContentsPrintOptions
fn clone(&self) -> WebContentsPrintOptions
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 WebContentsPrintOptions
impl Debug for WebContentsPrintOptions
Source§impl Default for WebContentsPrintOptions
impl Default for WebContentsPrintOptions
Source§fn default() -> WebContentsPrintOptions
fn default() -> WebContentsPrintOptions
Returns the “default value” for a type. Read more
Source§impl From<WebContentsPrintOptions> for JsValue
impl From<WebContentsPrintOptions> for JsValue
Source§fn from(value: WebContentsPrintOptions) -> Self
fn from(value: WebContentsPrintOptions) -> Self
Converts to this type from the input type.
Source§impl RefFromWasmAbi for WebContentsPrintOptions
impl RefFromWasmAbi for WebContentsPrintOptions
Source§type Anchor = RcRef<WebContentsPrintOptions>
type Anchor = RcRef<WebContentsPrintOptions>
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 VectorFromWasmAbi for WebContentsPrintOptions
impl VectorFromWasmAbi for WebContentsPrintOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WebContentsPrintOptions]>
Source§impl VectorIntoJsValue for WebContentsPrintOptions
impl VectorIntoJsValue for WebContentsPrintOptions
fn vector_into_jsvalue(vector: Box<[WebContentsPrintOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for WebContentsPrintOptions
impl VectorIntoWasmAbi for WebContentsPrintOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WebContentsPrintOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for WebContentsPrintOptions
impl WasmDescribeVector for WebContentsPrintOptions
impl SupportsConstructor for WebContentsPrintOptions
impl SupportsInstanceProperty for WebContentsPrintOptions
impl SupportsStaticProperty for WebContentsPrintOptions
Auto Trait Implementations§
impl Freeze for WebContentsPrintOptions
impl RefUnwindSafe for WebContentsPrintOptions
impl !Send for WebContentsPrintOptions
impl !Sync for WebContentsPrintOptions
impl Unpin for WebContentsPrintOptions
impl UnwindSafe for WebContentsPrintOptions
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
.