use serde::{Deserialize, Serialize};
use url::Url;
use crate::api::compute::v2::models::*;
#[derive(Debug, Serialize, Deserialize, Clone, Eq, PartialEq)]
pub struct PagedResponse<T> {
pub objects: Vec<T>,
pub meta: PageMetadata,
}
#[derive(Debug, Serialize, Deserialize, Clone, Eq, PartialEq)]
pub struct PageMetadata {
#[serde(default)]
pub total: usize,
#[serde(default)]
pub next: Option<Url>,
#[serde(default)]
pub prev: Option<Url>,
}
pub type GetFormationsResponse = PagedResponse<Formation>;
pub type CreateFormationResponse = Formation;
pub type GetFormationResponse = Formation;
pub type DeleteFormationResponse = ();