figma_api/models/
measurement_offset_inner.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/// MeasurementOffsetInner : Measurement offset relative to the inside of the start node
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct MeasurementOffsetInner {
17    #[serde(rename = "type")]
18    pub r#type: Type,
19    #[serde(rename = "relative")]
20    pub relative: f64,
21}
22
23impl MeasurementOffsetInner {
24    /// Measurement offset relative to the inside of the start node
25    pub fn new(r#type: Type, relative: f64) -> MeasurementOffsetInner {
26        MeasurementOffsetInner {
27            r#type,
28            relative,
29        }
30    }
31}
32/// 
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "INNER")]
36    Inner,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::Inner
42    }
43}
44