using AIStudio.Tools.Databases; using AIStudio.Tools.Databases.IndexStore; namespace AIStudio.Tools.Services; /// /// One mail a search of a mailbox found. /// /// What a list of mails shows about the mail. /// The passage of the mail which matched the query best, or null when the mails were listed without a query. /// Where that passage is in the mail, e.g., on which page of which attachment, or null without a passage. public sealed record MailSearchHit(MailSummary Summary, string? Passage, ChunkLocation? PassageLocation = null);