pub struct RectIR {
pub x: Number,
pub y: Number,
pub width: Number,
pub height: Number,
}Expand description
Rectangular region, field-compatible with DeviceRail UiRect.
Uses serde_json::Number (not f64) so integer inputs round-trip as
integers — required by the canonical-form rule that numbers keep their
shortest ES representation (02 §12.1).
Fields§
§x: NumberX origin.
y: NumberY origin.
width: NumberWidth (≥ 0).
height: NumberHeight (≥ 0).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RectIR
impl<'de> Deserialize<'de> for RectIR
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 JsonSchema for RectIR
impl JsonSchema for RectIR
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for RectIR
Auto Trait Implementations§
impl Freeze for RectIR
impl RefUnwindSafe for RectIR
impl Send for RectIR
impl Sync for RectIR
impl Unpin for RectIR
impl UnsafeUnpin for RectIR
impl UnwindSafe for RectIR
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