pub enum ComputerUseActionDtoActionVariant2Y {
Px {
value: f64,
},
X {
denominator: f64,
numerator: f64,
},
}Expand description
Y coordinate
JSON schema
{
"description": "Y 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 ComputerUseActionDtoActionVariant2Y
impl Clone for ComputerUseActionDtoActionVariant2Y
Source§fn clone(&self) -> ComputerUseActionDtoActionVariant2Y
fn clone(&self) -> ComputerUseActionDtoActionVariant2Y
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 ComputerUseActionDtoActionVariant2Y
impl<'de> Deserialize<'de> for ComputerUseActionDtoActionVariant2Y
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<&ComputerUseActionDtoActionVariant2Y> for ComputerUseActionDtoActionVariant2Y
impl From<&ComputerUseActionDtoActionVariant2Y> for ComputerUseActionDtoActionVariant2Y
Source§fn from(value: &ComputerUseActionDtoActionVariant2Y) -> Self
fn from(value: &ComputerUseActionDtoActionVariant2Y) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComputerUseActionDtoActionVariant2Y
impl RefUnwindSafe for ComputerUseActionDtoActionVariant2Y
impl Send for ComputerUseActionDtoActionVariant2Y
impl Sync for ComputerUseActionDtoActionVariant2Y
impl Unpin for ComputerUseActionDtoActionVariant2Y
impl UnsafeUnpin for ComputerUseActionDtoActionVariant2Y
impl UnwindSafe for ComputerUseActionDtoActionVariant2Y
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