pub struct ComputerUsePreviewToolArgs { /* private fields */ }Expand description
Builder for ComputerUsePreviewTool.
Implementations§
Source§impl ComputerUsePreviewToolArgs
impl ComputerUsePreviewToolArgs
Sourcepub fn environment<VALUE: Into<ComputerEnvironment>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn environment<VALUE: Into<ComputerEnvironment>>( &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<ComputerUsePreviewTool, ComputerUsePreviewToolArgsError>
pub fn build( &self, ) -> Result<ComputerUsePreviewTool, ComputerUsePreviewToolArgsError>
Trait Implementations§
Source§impl Clone for ComputerUsePreviewToolArgs
impl Clone for ComputerUsePreviewToolArgs
Source§fn clone(&self) -> ComputerUsePreviewToolArgs
fn clone(&self) -> ComputerUsePreviewToolArgs
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 ComputerUsePreviewToolArgs
impl RefUnwindSafe for ComputerUsePreviewToolArgs
impl Send for ComputerUsePreviewToolArgs
impl Sync for ComputerUsePreviewToolArgs
impl Unpin for ComputerUsePreviewToolArgs
impl UnwindSafe for ComputerUsePreviewToolArgs
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