netbox_openapi/models/
patched_fhrp_group_assignment_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/// PatchedFhrpGroupAssignmentRequest : Adds support for custom fields and tags.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct PatchedFhrpGroupAssignmentRequest {
15    #[serde(rename = "group", skip_serializing_if = "Option::is_none")]
16    pub group: Option<Box<crate::models::FhrpGroupAssignmentRequestGroup>>,
17    #[serde(rename = "interface_type", skip_serializing_if = "Option::is_none")]
18    pub interface_type: Option<String>,
19    #[serde(rename = "interface_id", skip_serializing_if = "Option::is_none")]
20    pub interface_id: Option<i64>,
21    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
22    pub priority: Option<i32>,
23}
24
25impl PatchedFhrpGroupAssignmentRequest {
26    /// Adds support for custom fields and tags.
27    pub fn new() -> PatchedFhrpGroupAssignmentRequest {
28        PatchedFhrpGroupAssignmentRequest {
29            group: None,
30            interface_type: None,
31            interface_id: None,
32            priority: None,
33        }
34    }
35}