pub struct ComputerUsePreviewArgs { /* private fields */ }
Expand description
Builder for ComputerUsePreview
.
Implementations§
Source§impl ComputerUsePreviewArgs
impl ComputerUsePreviewArgs
Sourcepub fn environment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn environment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The type of computer environment to control.
Sourcepub fn display_width<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn display_width<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
The width of the computer display.
Sourcepub fn display_height<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn display_height<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
The height of the computer display.
Sourcepub fn build(&self) -> Result<ComputerUsePreview, ComputerUsePreviewArgsError>
pub fn build(&self) -> Result<ComputerUsePreview, ComputerUsePreviewArgsError>
Trait Implementations§
Source§impl Clone for ComputerUsePreviewArgs
impl Clone for ComputerUsePreviewArgs
Source§fn clone(&self) -> ComputerUsePreviewArgs
fn clone(&self) -> ComputerUsePreviewArgs
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 moreAuto Trait Implementations§
impl Freeze for ComputerUsePreviewArgs
impl RefUnwindSafe for ComputerUsePreviewArgs
impl Send for ComputerUsePreviewArgs
impl Sync for ComputerUsePreviewArgs
impl Unpin for ComputerUsePreviewArgs
impl UnwindSafe for ComputerUsePreviewArgs
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