(&self, locale: Locale)
| 117 | |
| 118 | impl TopicInfo { |
| 119 | fn name(&self, locale: Locale) -> String { |
| 120 | if let Some(name) = self.synonyms.get(&locale) { |
| 121 | return name.to_owned(); |
| 122 | } |
| 123 | |
| 124 | if let Some(name) = self.synonyms.get(&Locale::EN) { |
| 125 | return name.to_owned(); |
| 126 | } |
| 127 | |
| 128 | "[missing topic]".to_owned() |
| 129 | } |
| 130 | |
| 131 | fn mark_deleted(&mut self, id: &ExternalId) { |
| 132 | if &self.id == id { |