netlify_rust/models/
split_test.rs

1/*
2 * Netlify's API documentation
3 *
4 * Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.  This document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).  Additionally, we have two API clients for your convenience: - [Go Client](https://github.com/netlify/open-api#go-client) - [JS Client](https://github.com/netlify/js-client)
5 *
6 * The version of the OpenAPI document: 2.5.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct SplitTest {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    #[serde(rename = "site_id", skip_serializing_if = "Option::is_none")]
19    pub site_id: Option<String>,
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
23    pub path: Option<String>,
24    #[serde(rename = "branches", skip_serializing_if = "Option::is_none")]
25    pub branches: Option<Vec<serde_json::Value>>,
26    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
27    pub active: Option<bool>,
28    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
29    pub created_at: Option<String>,
30    #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")]
31    pub updated_at: Option<String>,
32    #[serde(rename = "unpublished_at", skip_serializing_if = "Option::is_none")]
33    pub unpublished_at: Option<String>,
34}
35
36impl SplitTest {
37    pub fn new() -> SplitTest {
38        SplitTest {
39            id: None,
40            site_id: None,
41            name: None,
42            path: None,
43            branches: None,
44            active: None,
45            created_at: None,
46            updated_at: None,
47            unpublished_at: None,
48        }
49    }
50}
51
52