Skip to main content

Module data_detected

Module data_detected 

Source
Expand description

Navigation helpers for Apple’s DDScannerResult archives.

These payloads are NSKeyedArchiver archives produced by the private DataDetectorsCore framework and stored inline in a message’s attributed body (e.g. under __kIMDataDetectedAttributeName, __kIMMoneyAttributeName, or __kIMAddressAttributeName). Each archive describes a tree of scanner results; every node has a type (kind), an optional value (value), the substring it matched (matched), and zero or more nested results (children).

ScannerResult is a lazy, borrowing cursor over one node of that tree. The semantic detector types parse themselves from a node via FromScannerResult.

Structs§

ScannerResult
Borrowing, lazily-resolved cursor over one DDScannerResult tree node.

Traits§

FromScannerResult
Type that can recognize itself from a ScannerResult node.