use crate::{ArchivedCard, Board, Card, Column, Sprint};
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct BoardExport {
pub board: Board,
pub columns: Vec<Column>,
pub cards: Vec<Card>,
pub sprints: Vec<Sprint>,
#[serde(default)]
pub archived_cards: Vec<ArchivedCard>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AllBoardsExport {
pub boards: Vec<BoardExport>,
}
impl AllBoardsExport {
pub fn empty() -> Self {
Self { boards: Vec::new() }
}
pub fn from_boards(boards: Vec<BoardExport>) -> Self {
Self { boards }
}
}