mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2025-01-16 15:41:32 +01:00
23 lines
490 B
Rust
23 lines
490 B
Rust
use crate::store::TicketId;
|
|
use ticket_fields::{TicketDescription, TicketTitle};
|
|
|
|
#[derive(Clone, Debug, PartialEq)]
|
|
pub struct Ticket {
|
|
pub id: TicketId,
|
|
pub title: TicketTitle,
|
|
pub description: TicketDescription,
|
|
pub status: Status,
|
|
}
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
|
pub struct TicketDraft {
|
|
pub title: TicketTitle,
|
|
pub description: TicketDescription,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Copy, PartialEq, Eq)]
|
|
pub enum Status {
|
|
ToDo,
|
|
InProgress,
|
|
Done,
|
|
}
|