Search

public struct Search : Codable, Sendable

Represents the results of a search.

  • Undocumented

    Declaration

    Swift

    public init(accounts: [Account] = [], posts: [Post] = [], hashtags: [Tag] = [])
  • Accounts which match the given query.

    Declaration

    Swift

    public let accounts: [Account]
  • Posts which match the given query.

    Declaration

    Swift

    public let posts: [Post]
  • Hashtags which match the given query.

    Declaration

    Swift

    public let hashtags: [Tag]
  • Undocumented

    See more

    Declaration

    Swift

    enum CodingKeys : String, CodingKey