Skip to main content

nautobot_openapi/models/
bulk_operation_integer_id_request.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// BulkOperationIntegerIdRequest : As BulkOperationSerializer, but for models such as users.Group that have an integer ID field.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BulkOperationIntegerIdRequest {
15    #[serde(rename = "id")]
16    pub id: i32,
17}
18
19impl BulkOperationIntegerIdRequest {
20    /// As BulkOperationSerializer, but for models such as users.Group that have an integer ID field.
21    pub fn new(id: i32) -> BulkOperationIntegerIdRequest {
22        BulkOperationIntegerIdRequest { id }
23    }
24}