pub struct ComputerUsePreviewTool {
pub environment: ComputerUsePreviewToolEnvironment,
pub display_width: u64,
pub display_height: u64,
}
Expand description
A tool that controls a virtual computer. Learn more about the computer tool.
Fields§
§environment: ComputerUsePreviewToolEnvironment
The type of computer environment to control.
display_width: u64
The width of the computer display.
display_height: u64
The height of the computer display.
Implementations§
Source§impl ComputerUsePreviewTool
impl ComputerUsePreviewTool
Sourcepub fn builder() -> ComputerUsePreviewToolBuilder<((), (), ())>
pub fn builder() -> ComputerUsePreviewToolBuilder<((), (), ())>
Create a builder for building ComputerUsePreviewTool
.
On the builder, call .environment(...)
, .display_width(...)
, .display_height(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ComputerUsePreviewTool
.
Trait Implementations§
Source§impl Clone for ComputerUsePreviewTool
impl Clone for ComputerUsePreviewTool
Source§fn clone(&self) -> ComputerUsePreviewTool
fn clone(&self) -> ComputerUsePreviewTool
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 ComputerUsePreviewTool
impl Debug for ComputerUsePreviewTool
Source§impl<'de> Deserialize<'de> for ComputerUsePreviewTool
impl<'de> Deserialize<'de> for ComputerUsePreviewTool
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComputerUsePreviewTool
impl PartialEq for ComputerUsePreviewTool
Source§impl Serialize for ComputerUsePreviewTool
impl Serialize for ComputerUsePreviewTool
impl Copy for ComputerUsePreviewTool
impl StructuralPartialEq for ComputerUsePreviewTool
Auto Trait Implementations§
impl Freeze for ComputerUsePreviewTool
impl RefUnwindSafe for ComputerUsePreviewTool
impl Send for ComputerUsePreviewTool
impl Sync for ComputerUsePreviewTool
impl Unpin for ComputerUsePreviewTool
impl UnwindSafe for ComputerUsePreviewTool
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