pub struct ComputerUsePreviewBuilder { /* private fields */ }
Expand description
Builder for ComputerUsePreview
.
Implementations§
Source§impl ComputerUsePreviewBuilder
impl ComputerUsePreviewBuilder
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, ComputerUsePreviewBuilderError>
pub fn build( &self, ) -> Result<ComputerUsePreview, ComputerUsePreviewBuilderError>
Trait Implementations§
Source§impl Clone for ComputerUsePreviewBuilder
impl Clone for ComputerUsePreviewBuilder
Source§fn clone(&self) -> ComputerUsePreviewBuilder
fn clone(&self) -> ComputerUsePreviewBuilder
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 ComputerUsePreviewBuilder
impl RefUnwindSafe for ComputerUsePreviewBuilder
impl Send for ComputerUsePreviewBuilder
impl Sync for ComputerUsePreviewBuilder
impl Unpin for ComputerUsePreviewBuilder
impl UnwindSafe for ComputerUsePreviewBuilder
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