nautobot_openapi/models/bulk_writable_group_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/// BulkWritableGroupRequest : Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see <https://github.com/encode/django-rest-framework/issues/3144>)
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct BulkWritableGroupRequest {
15 #[serde(rename = "id")]
16 pub id: i32,
17 #[serde(rename = "name")]
18 pub name: String,
19}
20
21impl BulkWritableGroupRequest {
22 /// Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see <https://github.com/encode/django-rest-framework/issues/3144>)
23 pub fn new(id: i32, name: String) -> BulkWritableGroupRequest {
24 BulkWritableGroupRequest { id, name }
25 }
26}