completed till 06/07

This commit is contained in:
2025-04-01 07:15:32 +05:30
parent 2fa61e7715
commit f980a3b381
7 changed files with 52 additions and 6 deletions

View File

@@ -7,6 +7,18 @@ pub struct TicketStore {
tickets: Vec<Ticket>,
}
impl TicketStore {
fn to_dos(&self) -> Vec<&Ticket> {
self.tickets
.iter()
.filter(|&a| match a.status {
Status::ToDo => true,
_ => false,
})
.collect::<Vec<_>>()
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct Ticket {
pub title: TicketTitle,