Added public init to PerlSearchQuery

This commit is contained in:
cdricms
2024-01-18 14:46:18 +01:00
parent 8073aa6a38
commit c786e842b8

View File

@@ -26,7 +26,7 @@ public struct PerlSearchQuery {
public var page: Int = 1 // Pagination
public var format: PerlFormat // json=1 | xml=1 | jqm=1
init(searchTerms: String, searchTags: [SearchTagsEntry]? = nil, searchNutriment: [SearchNutrimentEntry]? = nil, page: Int = 1, format: PerlFormat = .json) {
public init(searchTerms: String, searchTags: [SearchTagsEntry]? = nil, searchNutriment: [SearchNutrimentEntry]? = nil, page: Int = 1, format: PerlFormat = .json) {
self.searchTerms = searchTerms
self.searchTags = searchTags
self.searchNutriment = searchNutriment