Module Values.GenericAttachmentSource

Represents an option rendered to the user when a prompt is shown. It could be an image, a button, a link, or text.

Sourcetype nonrec t = {
  1. title : StringWithLength.t option;
    (*

    The title of the option.

    *)
  2. subTitle : StringWithLength.t option;
    (*

    The subtitle shown below the title.

    *)
  3. attachmentLinkUrl : StringUrlWithLength.t option;
    (*

    The URL of an attachment to the response card.

    *)
  4. imageUrl : StringUrlWithLength.t option;
    (*

    The URL of an image that is displayed to the user.

    *)
  5. buttons : ListOfButtons.t option;
    (*

    The list of options to show to the user.

    *)
}
Sourceval make : ?title:??? -> ?subTitle:??? -> ?attachmentLinkUrl:??? -> ?imageUrl:??? -> ?buttons:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonTextStringWithLength.t ]) list ] list | `String of StringWithLength.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t