Table of Contents

Struct DiscoveryIntent

Namespace
MailFathom.Application.Discovery.Planning
Assembly
MailFathom.Application.dll

What a question is asking for, and the block a result answering it opens with.

public readonly record struct DiscoveryIntent : IEquatable<DiscoveryIntent>
Implements
Inherited Members

Remarks

A person asking about their mail never picks a mode and never chooses a presentation. The shape of the result follows from the shape of the question, and this is the closed set of shapes that mapping is defined over: a comparison arrives as a table because it was a comparison, not because somebody asked for a table.

It is a closed enumeration rather than a plain enum because each member carries the block it opens with, and because Identity is the name a model answers with — a published identity that has to survive a rename of the member beside it.

Unclassified is what makes the set total. A question fitting none of the four named kinds is ordinary rather than a refusal, and it is answered the way a question with no particular shape should be: with an answer and the evidence behind it.

Fields

CompareTermsIdentity

The identity of the intent that asks for offers or terms to be compared.

FindDocumentsIdentity

The identity of the intent that asks for documents.

FindFactIdentity

The identity of the intent that asks for a specific fact.

TrackChangeIdentity

The identity of the intent that asks what changed over time.

UnclassifiedIdentity

The identity of the intent a question fitting none of the named kinds is read as.

Properties

All

Gets every intent this catalogue holds, in the order the product describes them.

CompareTerms

Gets the intent of a question setting several offers or terms against each other, which opens with the table comparing them.

FindDocuments

Gets the intent of a question looking for files, which opens with the documents themselves.

FindFact

Gets the intent of a question asking what something is, which opens with the answer and its evidence.

Identity

Gets the name this intent is written and read under.

IsSpecified

Gets whether this value names an intent rather than being the default of the struct.

OpensWith

Gets the block a result answering a question of this intent opens with.

TrackChange

Gets the intent of a question asking how something changed, which opens with the sequence of events.

Unclassified

Gets the intent a question fitting none of the four named kinds carries.

Methods

ToString()

Returns the fully qualified type name of this instance.

TryParse(string?, out DiscoveryIntent)

Reads an intent from the name it is written under.