start 04 traits, completed upto 10
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user