nautobot-openapi 0.4.0

low level nautobot bindings (generated by openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

/// PatchedDeviceClusterAssignmentRequest : Serializer for DeviceClusterAssignment model.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PatchedDeviceClusterAssignmentRequest {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    #[serde(rename = "device", skip_serializing_if = "Option::is_none")]
    pub device: Option<Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
    #[serde(rename = "cluster", skip_serializing_if = "Option::is_none")]
    pub cluster: Option<Box<crate::models::ApprovalWorkflowStageResponseApprovalWorkflowStage>>,
}

impl PatchedDeviceClusterAssignmentRequest {
    /// Serializer for DeviceClusterAssignment model.
    pub fn new() -> PatchedDeviceClusterAssignmentRequest {
        PatchedDeviceClusterAssignmentRequest {
            id: None,
            device: None,
            cluster: None,
        }
    }
}