This commit is contained in:
LukeMathWalker 2024-05-16 09:20:07 +02:00
parent 5fda479c96
commit f671914dfb
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ pub struct Ticket {
That's also not ideal—we'd have to handle the `None` case every single time we retrieve a ticket from the store, That's also not ideal—we'd have to handle the `None` case every single time we retrieve a ticket from the store,
even though we know that the id should always be there once the ticket has been created. even though we know that the id should always be there once the ticket has been created.
The best solution is two have two different ticket **states**, represented by two separate types: The best solution is to have two different ticket **states**, represented by two separate types:
a `TicketDraft` and a `Ticket`: a `TicketDraft` and a `Ticket`:
```rust ```rust