pub enum ComputerUseActionDtoActionVariant2X {
Px {
value: f64,
},
X {
denominator: f64,
numerator: f64,
},
}Expand description
X coordinate
JSON schema
{
"description": "X coordinate",
"oneOf": [
{
"description": "Length in pixels",
"type": "object",
"required": [
"type",
"value"
],
"properties": {
"type": {
"description": "Indicates the unit is pixel",
"type": "string",
"enum": [
"px"
]
},
"value": {
"description": "Length in pixels",
"type": "number"
}
}
},
{
"description": "Length as a fraction",
"type": "object",
"required": [
"denominator",
"numerator",
"type"
],
"properties": {
"denominator": {
"description": "Denominator of the fraction",
"type": "number"
},
"numerator": {
"description": "Numerator of the fraction",
"type": "number"
},
"type": {
"type": "string",
"enum": [
"/"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for ComputerUseActionDtoActionVariant2X
impl Clone for ComputerUseActionDtoActionVariant2X
Source§fn clone(&self) -> ComputerUseActionDtoActionVariant2X
fn clone(&self) -> ComputerUseActionDtoActionVariant2X
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ComputerUseActionDtoActionVariant2X
impl<'de> Deserialize<'de> for ComputerUseActionDtoActionVariant2X
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 From<&ComputerUseActionDtoActionVariant2X> for ComputerUseActionDtoActionVariant2X
impl From<&ComputerUseActionDtoActionVariant2X> for ComputerUseActionDtoActionVariant2X
Source§fn from(value: &ComputerUseActionDtoActionVariant2X) -> Self
fn from(value: &ComputerUseActionDtoActionVariant2X) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComputerUseActionDtoActionVariant2X
impl RefUnwindSafe for ComputerUseActionDtoActionVariant2X
impl Send for ComputerUseActionDtoActionVariant2X
impl Sync for ComputerUseActionDtoActionVariant2X
impl Unpin for ComputerUseActionDtoActionVariant2X
impl UnsafeUnpin for ComputerUseActionDtoActionVariant2X
impl UnwindSafe for ComputerUseActionDtoActionVariant2X
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