start 04 traits, completed upto 10

This commit is contained in:
2025-03-01 15:00:03 +05:30
parent 3e6fc66515
commit 10fea65893
11 changed files with 73 additions and 18 deletions

View File

@@ -31,16 +31,16 @@ impl Ticket {
}
}
pub fn title(&self) -> &String {
&self.title
pub fn title(&self) -> &str {
&self.title.as_str()
}
pub fn description(&self) -> &String {
&self.description
pub fn description(&self) -> &str {
&self.description.as_str()
}
pub fn status(&self) -> &String {
&self.status
pub fn status(&self) -> &str {
&self.status.as_str()
}
}