(*--------------------------------------------------------------------------- Copyright (c) 2025 Anil Madhavapeddy. All rights reserved. SPDX-License-Identifier: ISC ---------------------------------------------------------------------------*) (** SearchSnippet type as defined in RFC 8621 Section 5 @canonical Jmap.Proto.Search_snippet *) type t = { email_id : Proto_id.t; (** The email this snippet is for. *) subject : string option; (** HTML snippet of matching subject text. *) preview : string option; (** HTML snippet of matching body text. *) } val email_id : t -> Proto_id.t val subject : t -> string option val preview : t -> string option val jsont : t Jsont.t