Skip to content

Commit

Permalink
Identifiable conformance for SearchResult
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoarment committed Nov 5, 2023
1 parent 25284b9 commit 13c4753
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Blackbird/BlackbirdModelSearch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ public struct BlackbirdModelSearchOptions<T: BlackbirdModel>: Sendable {
}

/// A matching model from a full-text search query, with snippets to highlight the query in the source text.
public struct BlackbirdModelSearchResult<T: BlackbirdModel>: Sendable {
public struct BlackbirdModelSearchResult<T: BlackbirdModel>: Identifiable, Sendable {
public var id: Blackbird.Value { rowid }

private let highlights: Blackbird.ModelRow<T>?
private let highlightMode: BlackbirdModelSearchOptions<T>.HighlightMode
private let snippets: Blackbird.ModelRow<T>?
Expand Down

0 comments on commit 13c4753

Please sign in to comment.