figma_api/models/
connector_endpoint.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/// ConnectorEndpoint : Stores canvas location for a connector start/end point.
15/// Stores canvas location for a connector start/end point.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum ConnectorEndpoint {
19    ConnectorEndpointOneOf(Box<models::ConnectorEndpointOneOf>),
20    ConnectorEndpointOneOf1(Box<models::ConnectorEndpointOneOf1>),
21}
22
23impl Default for ConnectorEndpoint {
24    fn default() -> Self {
25        Self::ConnectorEndpointOneOf(Default::default())
26    }
27}
28/// The magnet type is a string enum.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum Magnet {
31    #[serde(rename = "AUTO")]
32    Auto,
33    #[serde(rename = "TOP")]
34    Top,
35    #[serde(rename = "BOTTOM")]
36    Bottom,
37    #[serde(rename = "LEFT")]
38    Left,
39    #[serde(rename = "RIGHT")]
40    Right,
41    #[serde(rename = "CENTER")]
42    Center,
43}
44
45impl Default for Magnet {
46    fn default() -> Magnet {
47        Self::Auto
48    }
49}
50