---
title: CSSearchQueryContext.SourceOptions
framework: corespotlight
role: symbol
role_heading: Structure
path: corespotlight/cssearchquerycontext/sourceoptions-swift.struct
---

# CSSearchQueryContext.SourceOptions

The query source options to allow or deny Mail messages in the search.

## Declaration

```swift
struct SourceOptions
```

## Topics

### Search options

- [allowMail](corespotlight/cssearchquerycontext/sourceoptions-swift.struct/allowmail.md)

### Initializers

- [init(rawValue:)](corespotlight/cssearchquerycontext/sourceoptions-swift.struct/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Configuring search behavior

- [fetchAttributes](corespotlight/cssearchquerycontext/fetchattributes.md)
- [keyboardLanguage](corespotlight/cssearchquerycontext/keyboardlanguage.md)
- [sourceOptions](corespotlight/cssearchquerycontext/sourceoptions-swift.property.md)
