use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct QuarantineActionResponse {
#[serde(rename = "artifact_id")]
pub artifact_id: uuid::Uuid,
#[serde(rename = "message")]
pub message: String,
#[serde(rename = "new_status")]
pub new_status: String,
}
impl QuarantineActionResponse {
pub fn new(artifact_id: uuid::Uuid, message: String, new_status: String) -> QuarantineActionResponse {
QuarantineActionResponse {
artifact_id,
message,
new_status,
}
}
}