(&self)
| 588 | } |
| 589 | |
| 590 | pub fn id(&self) -> &ExternalId { |
| 591 | match self { |
| 592 | Self::Topic(Topic { key, .. }) => &key.0, |
| 593 | Self::Link(Link { key, .. }) => &key.0, |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | pub fn to_search_match(self, locale: Locale, search: &Search) -> Result<SearchMatch> { |
| 598 | let normalized = &search.normalized; |
no outgoing calls