figma-schema 0.3.0

Figma REST API schema
Documentation
1
2
3
4
5
6
7
8
9
10
11
use serde::{Deserialize, Serialize};

/// [Figma documentation](https://www.figma.com/developers/api#rectangle-type)
#[derive(Debug, Deserialize, Serialize, Clone)]
#[typeshare::typeshare]
pub struct Rectangle {
    pub x: Option<f64>,
    pub y: Option<f64>,
    pub width: Option<f64>,
    pub height: Option<f64>,
}