figma_api/models/
measurement_offset.rs

1/*
2 * Figma API
3 *
4 * This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api).  Note: we are releasing the OpenAPI specification as a beta given the large surface area and complexity of the REST API. If you notice any inaccuracies with the specification, please [file an issue](https://github.com/figma/rest-api-spec/issues).
5 *
6 * The version of the OpenAPI document: 0.31.0
7 * Contact: support@figma.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum MeasurementOffset {
17    MeasurementOffsetInner(Box<models::MeasurementOffsetInner>),
18    MeasurementOffsetOuter(Box<models::MeasurementOffsetOuter>),
19}
20
21impl Default for MeasurementOffset {
22    fn default() -> Self {
23        Self::MeasurementOffsetInner(Default::default())
24    }
25}
26/// 
27#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
28pub enum Type {
29    #[serde(rename = "INNER")]
30    Inner,
31    #[serde(rename = "OUTER")]
32    Outer,
33}
34
35impl Default for Type {
36    fn default() -> Type {
37        Self::Inner
38    }
39}
40