use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateSnapshotResponse {
#[serde(rename = "action")]
pub action: Box<models::Action>,
#[serde(rename = "snapshot")]
pub snapshot: Box<models::CreateSnapshotResponseSnapshot>,
}
impl CreateSnapshotResponse {
pub fn new(
action: models::Action,
snapshot: models::CreateSnapshotResponseSnapshot,
) -> CreateSnapshotResponse {
CreateSnapshotResponse {
action: Box::new(action),
snapshot: Box::new(snapshot),
}
}
}