netbox_openapi/models/
brief_circuit_request.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/// BriefCircuitRequest : Adds support for custom fields and tags.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BriefCircuitRequest {
15    /// Unique circuit ID
16    #[serde(rename = "cid")]
17    pub cid: String,
18    #[serde(rename = "provider")]
19    pub provider: Box<crate::models::BriefCircuitRequestProvider>,
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22}
23
24impl BriefCircuitRequest {
25    /// Adds support for custom fields and tags.
26    pub fn new(
27        cid: String,
28        provider: crate::models::BriefCircuitRequestProvider,
29    ) -> BriefCircuitRequest {
30        BriefCircuitRequest {
31            cid,
32            provider: Box::new(provider),
33            description: None,
34        }
35    }
36}