Module Sortal_feed.Entry

Unified feed entry type.

Provides a common representation across Atom, RSS, and JSON Feed entries with conversion functions from each native format.

type t = {
  1. id : string;
  2. title : string option;
  3. date : Ptime.t option;
  4. summary : string option;
  5. content : string option;
  6. url : Uri.t option;
  7. source_feed : string;
  8. source_type : Sortal_schema.Feed.feed_type;
}
val of_atom_entry : source_feed:string -> Syndic.Atom.entry -> t
val of_rss2_item : source_feed:string -> Syndic.Rss2.item -> t
val of_jsonfeed_item : source_feed:string -> Jsonfeed.Item.t -> t
val compare_by_date : t -> t -> int
val pp : Format.formatter -> t -> unit
val pp_full : Format.formatter -> t -> unit