SwiftstructShazamKit
struct ShazamKit.SHLibrary.Query
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
- protocolSwift.Hashable
Members 10
- func
static allItems<A where A: Collection, A.Element == Foundation.UUID>(identifiedBy: A) -> ShazamKit.SHLibrary.Query - func
static allItems(matching: Foundation.Predicate<Pack{SHMediaItem}>) -> ShazamKit.SHLibrary.Query - func
static item(with: Foundation.UUID) -> ShazamKit.SHLibrary.Query - var
static var allItems: ShazamKit.SHLibrary.Query { get } - field
var fetchLimit: Int - field
let predicate: Foundation.Predicate<Pack{SHMediaItem}>? - field
var sortDescriptors: [ShazamKit.SHLibrary.Query.SortDescriptor] - func
limit(Int) -> ShazamKit.SHLibrary.Query - func
sorted<A where A: Comparable>(by: KeyPath<SHMediaItem, A> & Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query - func
sorted<A where A: Comparable>(by: KeyPath<SHMediaItem, A?> & Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query
Header
struct ShazamKit.SHLibrary.Query { struct SortDescriptor { let keyPath: Swift.PartialKeyPath<__C.SHMediaItem> let order: Foundation.SortOrder } let predicate: Foundation.Predicate<__C.SHMediaItem>? var sortDescriptors: [ShazamKit.SHLibrary.Query.SortDescriptor] var fetchLimit: Swift.Int func limit(_: Swift.Int) -> ShazamKit.SHLibrary.Query func sorted<A>(by: any Swift.KeyPath<__C.SHMediaItem, A> & Swift.Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query where A: Swift.Comparable func sorted<A>(by: any Swift.KeyPath<__C.SHMediaItem, A?> & Swift.Sendable, _: Foundation.SortOrder) -> ShazamKit.SHLibrary.Query where A: Swift.Comparable static var allItems: ShazamKit.SHLibrary.Query { get } static func item(with: Foundation.UUID) -> ShazamKit.SHLibrary.Query static func allItems<A>(identifiedBy: A) -> ShazamKit.SHLibrary.Query where A: Swift.Collection, A.Element == Foundation.UUID static func allItems(matching: Foundation.Predicate<__C.SHMediaItem>) -> ShazamKit.SHLibrary.Query }