SearchSnippet implementation.

main
Mauro D 2022-06-27 13:26:03 +00:00
parent 136f10ec52
commit 931523bd20
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ impl SearchSnippetGetResponse {
&self.account_id
}
pub fn id(&self, id: &str) -> Option<&SearchSnippet> {
pub fn snippet(&self, id: &str) -> Option<&SearchSnippet> {
self.list.iter().find(|snippet| snippet.email_id == id)
}