completed till 11

This commit is contained in:
2025-04-02 17:54:30 +05:30
parent f980a3b381
commit 199b57aad8
4 changed files with 23 additions and 1 deletions

View File

@@ -7,6 +7,14 @@ pub struct TicketStore {
tickets: Vec<Ticket>,
}
impl TicketStore {
fn in_progress(&self) -> impl Iterator<Item = &Ticket> {
self.tickets
.iter()
.filter(|&a| a.status == Status::InProgress)
}
}
#[derive(Clone, Debug, PartialEq)]
pub struct Ticket {
pub title: TicketTitle,