netbox_openapi/models/
device_with_config_context_request_site.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.4.2-Docker-3.4.1 (4.4)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct DeviceWithConfigContextRequestSite {
13    /// Full name of the site
14    #[serde(rename = "name")]
15    pub name: String,
16    #[serde(rename = "slug")]
17    pub slug: String,
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20}
21
22impl DeviceWithConfigContextRequestSite {
23    pub fn new(name: String, slug: String) -> DeviceWithConfigContextRequestSite {
24        DeviceWithConfigContextRequestSite {
25            name,
26            slug,
27            description: None,
28        }
29    }
30}